summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Sec/Arm/Helper.S
diff options
context:
space:
mode:
Diffstat (limited to 'ArmPlatformPkg/Sec/Arm/Helper.S')
-rw-r--r--ArmPlatformPkg/Sec/Arm/Helper.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/ArmPlatformPkg/Sec/Arm/Helper.S b/ArmPlatformPkg/Sec/Arm/Helper.S
index 2e2801fe85..ac40102218 100644
--- a/ArmPlatformPkg/Sec/Arm/Helper.S
+++ b/ArmPlatformPkg/Sec/Arm/Helper.S
@@ -72,10 +72,10 @@ ASM_PFX(copy_cpsr_into_spsr):
# Set the Non Secure Mode
ASM_PFX(set_non_secure_mode):
push { r1 }
- and r0, r0, #0x1f @ Keep only the mode bits
+ and r0, r0, #0x1f @ Keep only the mode bits
mrs r1, spsr @ Read the spsr
bic r1, r1, #0x1f @ Clear all mode bits
- orr r1, r1, r0
+ orr r1, r1, r0
msr spsr_cxsf, r1 @ write back spsr (may have caused a mode switch)
isb
pop { r1 }