From b8a31c494cb535d9eb3e4c1971c4c9020c27c239 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Tue, 23 Jul 2019 07:30:23 -0400 Subject: [PATCH] one more TRAMPOLINE --- kernel/trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trap.c b/kernel/trap.c index ea5799f..1af7c00 100644 --- a/kernel/trap.c +++ b/kernel/trap.c @@ -123,7 +123,7 @@ usertrapret(void) // jump to trampoline.S at the top of memory, which // switches to the user page table, restores user registers, // and switches to user mode with sret. - ((void (*)(uint64,uint64))TRAMPOLINE)(TRAMPOLINE - PGSIZE, satp); + ((void (*)(uint64,uint64))TRAMPOLINE)(TRAPFRAME, satp); } // interrupts and exceptions from kernel code go here via kernelvec,