diff options
author | Robert Morris <[email protected]> | 2020-08-07 05:32:48 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2020-08-07 05:32:48 -0400 |
commit | 8b9b7999376f67f45cf9efde675d418841a264ce (patch) | |
tree | bc1203ec6dc250f6f9671d9881329e5ab22a069a /kernel/proc.c | |
parent | 050a69610afee9884bc3df27215d0d5534743975 (diff) | |
download | xv6-labs-8b9b7999376f67f45cf9efde675d418841a264ce.tar.gz xv6-labs-8b9b7999376f67f45cf9efde675d418841a264ce.tar.bz2 xv6-labs-8b9b7999376f67f45cf9efde675d418841a264ce.zip |
modify each page in usertests countfree()
get rid of static for walk() and freewalk()
Diffstat (limited to 'kernel/proc.c')
-rw-r--r-- | kernel/proc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/proc.c b/kernel/proc.c index f7652f6..cf7f260 100644 --- a/kernel/proc.c +++ b/kernel/proc.c @@ -20,6 +20,7 @@ static void wakeup1(struct proc *chan); extern char trampoline[]; // trampoline.S +// initialize the proc table at boot time. void procinit(void) { @@ -145,8 +146,8 @@ freeproc(struct proc *p) p->state = UNUSED; } -// Create a page table for a given process, -// with no user pages, but with trampoline pages. +// Create a user page table for a given process, +// with no user memory, but with trampoline pages. pagetable_t proc_pagetable(struct proc *p) { |