Use static page table for boot, mapping first 4Mbyte; no more segment trick
Allocate proper kernel page table immediately in main using boot allocator Remove pginit Simplify address space layout a tiny bit More to come (e.g., superpages to simplify static table)
This commit is contained in:
parent
3a03810643
commit
66ba8079c7
9 changed files with 1101 additions and 103 deletions
2
proc.c
2
proc.c
|
@ -83,7 +83,7 @@ userinit(void)
|
|||
|
||||
p = allocproc();
|
||||
initproc = p;
|
||||
if((p->pgdir = setupkvm()) == 0)
|
||||
if((p->pgdir = setupkvm(kalloc)) == 0)
|
||||
panic("userinit: out of memory?");
|
||||
inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
|
||||
p->sz = PGSIZE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue