From: Ben Gras Date: Tue, 12 May 2009 11:35:49 +0000 (+0000) Subject: don't call this function with a bogus addr (done by region.c print code) X-Git-Tag: v3.1.4~40 X-Git-Url: http://zhaoyanbai.com/repos/doc/%20%22?a=commitdiff_plain;h=6fad23f500aa5f21f56159ee33a7c55471d598d6;p=minix.git don't call this function with a bogus addr (done by region.c print code) --- diff --git a/servers/vm/i386/vm.c b/servers/vm/i386/vm.c index ccf2e569a..1f55874cf 100644 --- a/servers/vm/i386/vm.c +++ b/servers/vm/i386/vm.c @@ -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; }