SysCall: Fixed random crashes of QEMU.

This commit is contained in:
Mikhail Krichanov 2024-05-29 14:24:52 +03:00
parent c8ed0dc0c1
commit 8af0fd53c1

View File

@ -112,6 +112,9 @@ ASM_FUNC(ArmCallRing3)
ASM_FUNC(ReturnToCore)
// Switch to Core Stack.
mov sp, x1
// Zero Exception Syndrome Register to prevent QEMU from random crashing.
mov x1, #0
msr esr_el1, x1
// Restore Stack.
ldp x29, x30, [sp]
add sp, sp, #0x10