cosmetic changes (thanks Harry Porter)
This commit is contained in:
parent
dd5a720044
commit
62bc610424
3 changed files with 20 additions and 19 deletions
|
|
@ -171,8 +171,8 @@ freeproc(struct proc *p)
|
|||
p->state = UNUSED;
|
||||
}
|
||||
|
||||
// Create a user page table for a given process,
|
||||
// with no user memory, but with trampoline pages.
|
||||
// Create a user page table for a given process, with no user memory,
|
||||
// but with trampoline and trapframe pages.
|
||||
pagetable_t
|
||||
proc_pagetable(struct proc *p)
|
||||
{
|
||||
|
|
@ -193,7 +193,8 @@ proc_pagetable(struct proc *p)
|
|||
return 0;
|
||||
}
|
||||
|
||||
// map the trapframe just below TRAMPOLINE, for trampoline.S.
|
||||
// map the trapframe page just below the trampoline page, for
|
||||
// trampoline.S.
|
||||
if(mappages(pagetable, TRAPFRAME, PGSIZE,
|
||||
(uint64)(p->trapframe), PTE_R | PTE_W) < 0){
|
||||
uvmunmap(pagetable, TRAMPOLINE, 1, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue