-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Description
kernelvec:
# make room to save registers.
addi sp, sp, -256
# save caller-saved registers.
......
sd tp, 24(sp) // <----------- this line
......
# call the C trap handler in trap.c
call kerneltrap
# restore registers.
......
# not tp (contains hartid), in case we moved CPUs
......
tp
is not restored, why do we still save it?
Metadata
Metadata
Assignees
Labels
No labels