kern
diff src/proc.c @ 68:0a205396e1a0
- added a generic red-black tree data structure
- added a VM map as an red-black tree of vm_pages in the process structure
- constructed the vm map of the memory passed by the kernel initially to the first process.
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Mon, 10 Oct 2011 04:16:01 +0300 |
parents | f44bec97a0ec |
children | b45e2d5f0ae1 |
line diff
1.1 --- a/src/proc.c Sun Oct 09 20:38:35 2011 +0300 1.2 +++ b/src/proc.c Mon Oct 10 04:16:01 2011 +0300 1.3 @@ -131,6 +131,9 @@ 1.4 /* make it current */ 1.5 set_current_pid(p->id); 1.6 1.7 + /* build the current vm map */ 1.8 + cons_vmmap(&p->vmmap); 1.9 + 1.10 /* execute a fake return from interrupt with the fake stack frame */ 1.11 intr_ret(ifrm); 1.12 }