mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 23:15:15 +00:00
Kernel build: enter exception save sp_sl0,exit exception restroe sp_el0
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
This commit is contained in:
parent
c3da7c29e8
commit
8e200e69d4
1 changed files with 8 additions and 0 deletions
|
|
@ -78,6 +78,10 @@
|
|||
#endif
|
||||
stp \xreg0, \xreg1, [sp, #8 * REG_ELR]
|
||||
|
||||
mrs \xreg0, sp_el0
|
||||
mrs \xreg1, tpidrro_el0
|
||||
stp \xreg0, \xreg1, [sp, #8 * REG_SP_EL0]
|
||||
|
||||
/* Increment exception depth */
|
||||
|
||||
mrs \xreg0, tpidrro_el0
|
||||
|
|
@ -261,6 +265,10 @@ SECTION_FUNC(text, arm64_exit_exception)
|
|||
msr spsr_el1, x1
|
||||
#endif
|
||||
|
||||
ldp x0, x1, [sp, #8 * REG_SP_EL0]
|
||||
msr sp_el0, x0
|
||||
msr tpidrro_el0, x1
|
||||
|
||||
/* decrement exception depth */
|
||||
|
||||
mrs x0, tpidrro_el0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue