mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
SysCall: Fixed random crashes of QEMU.
This commit is contained in:
parent
ad5f4944d6
commit
0044377f2b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user