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
exec.c
2
exec.c
|
|
@ -29,7 +29,7 @@ exec(char *path, char **argv)
|
|||
if(elf.magic != ELF_MAGIC)
|
||||
goto bad;
|
||||
|
||||
if((pgdir = setupkvm()) == 0)
|
||||
if((pgdir = setupkvm(kalloc)) == 0)
|
||||
goto bad;
|
||||
|
||||
// Load program into memory.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue