aboutsummaryrefslogtreecommitdiff
path: root/el3/aarch64
diff options
context:
space:
mode:
Diffstat (limited to 'el3/aarch64')
-rw-r--r--el3/aarch64/el3_monitor_asm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/el3/aarch64/el3_monitor_asm.S b/el3/aarch64/el3_monitor_asm.S
index 2eac3b3..ea69b6d 100644
--- a/el3/aarch64/el3_monitor_asm.S
+++ b/el3/aarch64/el3_monitor_asm.S
@@ -94,8 +94,8 @@ monitor_switch:
stp x0, x1, [sp, #-16]! /* Save the input regs x0:x3 */
stp x2, x3, [sp, #-16]! /* Save the input regs x0:x3 */
mrs x3, scr_el3
- and x3, x3, #0x1
- cbz x3, switch_to_nsec
+ and x2, x3, #0x1
+ cbz x2, switch_to_nsec
switch_to_sec:
adr x0, nsec_state
MONITOR_SAVE_STATE