diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2014-07-12 13:23:59 (GMT) |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2014-07-28 15:06:19 (GMT) |
commit | 800c83522ca6a7d6fd0b058f423501b4cc52d6d6 (patch) | |
tree | a4865793a45efcb3552f5e9e5cc256ad7f4fab27 /arch/arm/cpu/armv7/nonsec_virt.S | |
parent | c19e0dd7412f5c4bce8c5057c40e747b1acb39e2 (diff) | |
download | u-boot-800c83522ca6a7d6fd0b058f423501b4cc52d6d6.tar.xz |
ARM: HYP/non-sec: add a barrier after setting SCR.NS==1
A CP15 instruction execution can be reordered, requiring an
isb to be sure it is executed in program order.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'arch/arm/cpu/armv7/nonsec_virt.S')
-rw-r--r-- | arch/arm/cpu/armv7/nonsec_virt.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/nonsec_virt.S b/arch/arm/cpu/armv7/nonsec_virt.S index 6367e09..12de5c2 100644 --- a/arch/arm/cpu/armv7/nonsec_virt.S +++ b/arch/arm/cpu/armv7/nonsec_virt.S @@ -46,6 +46,7 @@ _secure_monitor: #endif mcr p15, 0, r1, c1, c1, 0 @ write SCR (with NS bit set) + isb #ifdef CONFIG_ARMV7_VIRT mrceq p15, 0, r0, c12, c0, 1 @ get MVBAR value |