don't call this function with a bogus addr (done by region.c print code)

This commit is contained in:
Ben Gras 2009-05-12 11:35:49 +00:00
parent e3ca89c0be
commit 6fad23f500

View file

@ -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);
/* vm_assert(bottom <= addr); */
vm_assert(bottom <= addr);
return addr - bottom;
}