Adjust sbrk test for large user address spaces

All tests pass
This commit is contained in:
Frans Kaashoek 2011-08-07 23:03:48 -04:00
parent 67d4254d15
commit 6479766334
2 changed files with 10 additions and 21 deletions

2
vm.c
View file

@ -158,7 +158,7 @@ mappages(pde_t *pgdir, void *la, uint size, uint pa, int perm)
//
//
// setupkvm() and exec() set up every page table like this:
// 0..KERNBASE : user memory (text, data, stack, heap), mapped to some phys mem
// 0..USERTOP : user memory (text, data, stack, heap), mapped to some phys mem
// KERNBASE+640K..KERNBASE+1M: mapped to 640K..1M
// KERNBASE+1M..KERNBASE+end : mapped to 1M..end
// KERNBASE+end..KERBASE+PHYSTOP : mapped to end..PHYSTOP (free memory)