In pmap_mapdev we correctly round the address off to the nearest page
boundary, but we must also add the offset back on to the va we return.
This commit is contained in:
parent
6449092f51
commit
b96008e410
@ -4474,7 +4474,7 @@ pmap_mapdev(vm_offset_t pa, vm_size_t size)
|
||||
pa += PAGE_SIZE;
|
||||
}
|
||||
|
||||
return ((void *)(va));
|
||||
return ((void *)(va + offset));
|
||||
}
|
||||
|
||||
#define BOOTSTRAP_DEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user