diff options
Diffstat (limited to 'ArmPkg/Drivers/CpuDxe/ExceptionSupport.ARMv6.asm')
-rw-r--r-- | ArmPkg/Drivers/CpuDxe/ExceptionSupport.ARMv6.asm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ArmPkg/Drivers/CpuDxe/ExceptionSupport.ARMv6.asm b/ArmPkg/Drivers/CpuDxe/ExceptionSupport.ARMv6.asm index 8584ef0794..a8a477026e 100644 --- a/ArmPkg/Drivers/CpuDxe/ExceptionSupport.ARMv6.asm +++ b/ArmPkg/Drivers/CpuDxe/ExceptionSupport.ARMv6.asm @@ -243,6 +243,8 @@ NoAdjustNeeded ; R0 is ExceptionType mov R1,SP ; R1 is SystemContext + vpush {d0-d15} ; save vstm registers in case they are used in optimizations
+ /* VOID EFIAPI @@ -253,6 +255,8 @@ CommonCExceptionHandler ( */ blx CommonCExceptionHandler ; Call exception handler +
+ vpop {d0-d15}
ldr R1, [SP, #0x4c] ; Restore EFI_SYSTEM_CONTEXT_ARM.IFSR mcr p15, 0, R1, c5, c0, 1 ; Write IFSR |