trampin -> uservec
trampout -> userret
This commit is contained in:
parent
4e62de64cd
commit
ea95a6654c
6 changed files with 18 additions and 17 deletions
|
|
@ -18,7 +18,7 @@ struct spinlock pid_lock;
|
|||
extern void forkret(void);
|
||||
static void wakeup1(struct proc *chan);
|
||||
|
||||
extern char trampout[]; // trampoline.S
|
||||
extern char trampoline[]; // trampoline.S
|
||||
|
||||
void
|
||||
procinit(void)
|
||||
|
|
@ -159,7 +159,7 @@ proc_pagetable(struct proc *p)
|
|||
// only the supervisor uses it, on the way
|
||||
// to/from user space, so not PTE_U.
|
||||
mappages(pagetable, TRAMPOLINE, PGSIZE,
|
||||
(uint64)trampout, PTE_R | PTE_X);
|
||||
(uint64)trampoline, PTE_R | PTE_X);
|
||||
|
||||
// map the trapframe just below TRAMPOLINE, for trampoline.S.
|
||||
mappages(pagetable, TRAPFRAME, PGSIZE,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue