aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/cpu/armv7/nonsec_virt.S')
-rw-r--r--arch/arm/cpu/armv7/nonsec_virt.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/nonsec_virt.S b/arch/arm/cpu/armv7/nonsec_virt.S
index 56bdba1d38..1773fae205 100644
--- a/arch/arm/cpu/armv7/nonsec_virt.S
+++ b/arch/arm/cpu/armv7/nonsec_virt.S
@@ -80,6 +80,8 @@ _secure_monitor:
80#ifdef CONFIG_ARMV7_VIRT 80#ifdef CONFIG_ARMV7_VIRT
81 orreq r5, r5, #0x100 @ allow HVC instruction 81 orreq r5, r5, #0x100 @ allow HVC instruction
82 moveq r6, #HYP_MODE @ Enter the kernel as HYP 82 moveq r6, #HYP_MODE @ Enter the kernel as HYP
83 mrseq r3, sp_svc
84 msreq sp_hyp, r3 @ migrate SP
83#endif 85#endif
84 86
85 mcr p15, 0, r5, c1, c1, 0 @ write SCR (with NS bit set) 87 mcr p15, 0, r5, c1, c1, 0 @ write SCR (with NS bit set)