]> Zhao Yanbai Git Server - minix.git/commitdiff
vm: don't force physical addresses to be nonzero.
authorBen Gras <ben@minix3.org>
Tue, 13 Apr 2010 11:01:40 +0000 (11:01 +0000)
committerBen Gras <ben@minix3.org>
Tue, 13 Apr 2010 11:01:40 +0000 (11:01 +0000)
servers/vm/region.c

index fc60025b8e721216702af0677785288ed0e67ed7..429df185f40e6ae2e7e1cb533af7aa0a76b4fa78 100644 (file)
@@ -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));