mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-18 08:22:04 +00:00
mmu: Fix loop index variable name in mmio_get_device_address (#24)
This commit is contained in:
parent
0597fe887a
commit
c6158d7d64
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue