mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
SysCall: Fixed random crashes of QEMU.
This commit is contained in:
parent
c8ed0dc0c1
commit
8af0fd53c1
@ -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