mmu: Fix loop index variable name in mmio_get_device_address

This commit is contained in:
Lioncash 2018-02-22 21:04:11 -05:00
parent 5d97ac48f2
commit 33bd43610c
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -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 */
}