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:
benno 2006-05-30 14:21:09 +00:00
parent 6449092f51
commit b96008e410

View File

@ -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