From: Ben Gras Date: Tue, 13 Apr 2010 11:01:40 +0000 (+0000) Subject: vm: don't force physical addresses to be nonzero. X-Git-Tag: v3.1.7~148 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/ChangeLog.html?a=commitdiff_plain;h=1f1f8d220757dac824bb8cf6ef09ff4c2dc3bb1e;p=minix.git vm: don't force physical addresses to be nonzero. --- diff --git a/servers/vm/region.c b/servers/vm/region.c index fc60025b8..429df185f 100644 --- a/servers/vm/region.c +++ b/servers/vm/region.c @@ -726,17 +726,11 @@ int written; given.next = NULL; memlist = &given; used_memlist = 0; - assert(given.phys); assert(given.length); } r = OK; - for(ml = memlist; ml; ml = ml->next) { - assert(ml->phys); - assert(ml->length); - } - for(ml = memlist; ml; ml = ml->next) { struct phys_region *newphysr = NULL; struct phys_block *newpb = NULL; @@ -750,9 +744,6 @@ int written; break; } - assert(ml->phys); - assert(ml->length); - /* New physical block. */ assert(!(ml->phys % VM_PAGE_SIZE));