don't call this function with a bogus addr (done by region.c print code)
This commit is contained in:
parent
e3ca89c0be
commit
6fad23f500
@ -99,7 +99,7 @@ PUBLIC vir_bytes arch_map2vir(struct vmproc *vmp, vir_bytes addr)
|
|||||||
{
|
{
|
||||||
vir_bytes bottom = CLICK2ABS(vmp->vm_arch.vm_seg[D].mem_phys);
|
vir_bytes bottom = CLICK2ABS(vmp->vm_arch.vm_seg[D].mem_phys);
|
||||||
|
|
||||||
/* vm_assert(bottom <= addr); */
|
vm_assert(bottom <= addr);
|
||||||
|
|
||||||
return addr - bottom;
|
return addr - bottom;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user