vm: don't force physical addresses to be nonzero.
This commit is contained in:
parent
bc314bda91
commit
1f1f8d2207
@ -726,17 +726,11 @@ int written;
|
|||||||
given.next = NULL;
|
given.next = NULL;
|
||||||
memlist = &given;
|
memlist = &given;
|
||||||
used_memlist = 0;
|
used_memlist = 0;
|
||||||
assert(given.phys);
|
|
||||||
assert(given.length);
|
assert(given.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
r = OK;
|
r = OK;
|
||||||
|
|
||||||
for(ml = memlist; ml; ml = ml->next) {
|
|
||||||
assert(ml->phys);
|
|
||||||
assert(ml->length);
|
|
||||||
}
|
|
||||||
|
|
||||||
for(ml = memlist; ml; ml = ml->next) {
|
for(ml = memlist; ml; ml = ml->next) {
|
||||||
struct phys_region *newphysr = NULL;
|
struct phys_region *newphysr = NULL;
|
||||||
struct phys_block *newpb = NULL;
|
struct phys_block *newpb = NULL;
|
||||||
@ -750,9 +744,6 @@ int written;
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(ml->phys);
|
|
||||||
assert(ml->length);
|
|
||||||
|
|
||||||
/* New physical block. */
|
/* New physical block. */
|
||||||
assert(!(ml->phys % VM_PAGE_SIZE));
|
assert(!(ml->phys % VM_PAGE_SIZE));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user