X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ArmPlatformPkg%2FSec%2FArm%2FHelper.asm;h=8aa7d7840d56459bab93c7b9a8a149237efe77a2;hp=febcdb18a1b27a90f41c15b3c6d3a4c4909789ec;hb=91c38d4e94c1461f5824b83d3722fe46626aa0d3;hpb=5c670b2119f85bebacd0b1f5c1c84a831ffd5352 diff --git a/ArmPlatformPkg/Sec/Arm/Helper.asm b/ArmPlatformPkg/Sec/Arm/Helper.asm index febcdb18a1..8aa7d7840d 100644 --- a/ArmPlatformPkg/Sec/Arm/Helper.asm +++ b/ArmPlatformPkg/Sec/Arm/Helper.asm @@ -67,7 +67,7 @@ set_non_secure_mode 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 }