]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg: Add isb when setting SCR
authorEvan Lloyd <evan.lloyd@arm.com>
Wed, 3 Feb 2016 17:07:47 +0000 (17:07 +0000)
committerLeif Lindholm <leif.lindholm@linaro.org>
Wed, 3 Feb 2016 18:42:21 +0000 (18:42 +0000)
commitb2d0e0c51a6ca426ec5e9748130489eb8208af96
treee897ba46ae6a84d8c81fc79c63fb69f3d7534461
parent0119b0660789a8db77fa5ff54652d155d7948d9b
ArmPkg: Add isb when setting SCR

Some updates to SCR can cause a problem which manifests as an undefined opcode exception.
This may be when a speculative secure instruction fetch happens after the NS bit is set.
An isb is required to make the register change take effect fully.

Contributed-under: Tianocore Contribution Agreement 1.0
Signed-off-by: Evan Lloyd <Evan.Lloyd@arm.com>
Reviewed-by: Sami Mujawar <Sami.Mujawar@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPkg/Library/ArmLib/Common/AArch64/ArmLibSupport.S
ArmPkg/Library/ArmLib/Common/Arm/ArmLibSupport.S
ArmPkg/Library/ArmLib/Common/Arm/ArmLibSupport.asm