diff options
Diffstat (limited to 'trampoline.S')
-rw-r--r-- | trampoline.S | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/trampoline.S b/trampoline.S index 5886942..dd4eb02 100644 --- a/trampoline.S +++ b/trampoline.S @@ -120,6 +120,9 @@ trampin: # restore kernel stack pointer from p->tf->kernel_sp ld sp, 8(a0) + # make tp hold the current hartid, from p->tf->hartid + ld tp, 32(a0) + # remember the address of usertrap(), p->tf->kernel_trap ld t0, 16(a0) |