cosmetic changes (thanks Harry Porter)

This commit is contained in:
Frans Kaashoek 2022-08-12 11:47:39 -04:00
parent dd5a720044
commit 62bc610424
3 changed files with 20 additions and 19 deletions

View file

@ -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);