Merge pull request #4079 from lemin9538:arm64_fix
PiperOrigin-RevId: 335532690
This commit is contained in:
commit
8ef7cebcbb
|
@ -461,6 +461,14 @@ TEXT ·kernelExitToEl0(SB),NOSPLIT,$0
|
|||
MOVD PTRACE_PSTATE(RSV_REG_APP), R1
|
||||
WORD $0xd5184001 //MSR R1, SPSR_EL1
|
||||
|
||||
// need use kernel space address to excute below code, since
|
||||
// after SWITCH_TO_APP_PAGETABLE the ASID is changed to app's
|
||||
// ASID.
|
||||
WORD $0x10000061 // ADR R1, do_exit_to_el0
|
||||
ORR $0xffff000000000000, R1, R1
|
||||
JMP (R1)
|
||||
|
||||
do_exit_to_el0:
|
||||
// RSV_REG & RSV_REG_APP will be loaded at the end.
|
||||
REGISTERS_LOAD(RSV_REG_APP, 0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue