mmu: Fix loop index variable name in mmio_get_device_address (#24)

This commit is contained in:
Mat M 2018-02-22 21:05:43 -05:00 committed by SciresM
parent 0597fe887a
commit c6158d7d64

View file

@ -221,7 +221,7 @@ static const struct {
static inline uintptr_t mmio_get_device_address(unsigned int device_id) { static inline uintptr_t mmio_get_device_address(unsigned int device_id) {
size_t offset = 0; 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 += devices[i].size;
offset += 0x1000; /* guard page */ offset += 0x1000; /* guard page */
} }