]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SmmLockBox: Update to consume SpeculationBarrier
authorHao Wu <hao.a.wu@intel.com>
Fri, 21 Dec 2018 02:29:29 +0000 (10:29 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 25 Dec 2018 01:16:04 +0000 (09:16 +0800)
commit107775734d75073782ef9cad8ca32e7278f6c013
tree9a27415b3d186c9ea6f854fc35bc57802c13b17a
parent0e8c5d8b3b8dcc58491b6274b8841ff495da9da7
MdeModulePkg/SmmLockBox: Update to consume SpeculationBarrier

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1417

Since BaseLib API AsmLfence() is a x86 arch specific API and should be
avoided using in generic codes, this commit replaces the usage of
AsmLfence() with arch-generic API SpeculationBarrier().

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.c