Skip to content

Commit

Permalink
SysCall/AARCH64: Increased probability of QEMU's normal work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Krichanov committed May 29, 2024
1 parent ea5ba35 commit 5490c04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MdeModulePkg/Core/Dxe/SysCall/AARCH64/CoreBootServices.S
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ ASM_FUNC(ArmCallRing3)
ASM_FUNC(ReturnToCore)
// Zero Exception Syndrome Register to prevent QEMU from random crashing.
msr esr_el1, xzr
msr spsr_el1, xzr
msr elr_el1, xzr
msr far_el1, xzr
// Switch to Core Stack.
mov sp, x1
// Restore Stack.
Expand Down

0 comments on commit 5490c04

Please sign in to comment.