SysCall: Fixed random crashes of QEMU.

This commit is contained in:
Mikhail Krichanov 2024-05-29 14:24:52 +03:00
parent ad5f4944d6
commit 0044377f2b

View File

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