From c6158d7d64f6f627ede5eadc08f0231aeb44fc31 Mon Sep 17 00:00:00 2001 From: Mat M Date: Thu, 22 Feb 2018 21:05:43 -0500 Subject: [PATCH] mmu: Fix loop index variable name in mmio_get_device_address (#24) --- exosphere/mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exosphere/mmu.h b/exosphere/mmu.h index 042674129..cb398d315 100644 --- a/exosphere/mmu.h +++ b/exosphere/mmu.h @@ -221,7 +221,7 @@ static const struct { static inline uintptr_t mmio_get_device_address(unsigned int device_id) { size_t offset = 0; - for(unsigned int i = 0; i < devid; i++) { + for(unsigned int i = 0; i < device_id; i++) { offset += devices[i].size; offset += 0x1000; /* guard page */ }