]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/BaseLib/BaseLib.inf
MdePkg/BaseLib: implement SpeculationBarrier() for ARM and AArch64
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 6 Feb 2019 00:08:22 +0000 (00:08 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 12 Feb 2019 21:49:20 +0000 (22:49 +0100)
commitc0959b4426b2da45cdb8146a5116bb4fd9b86534
tree57dc77caaa640ff716fcf690b9c55979a94e90fa
parent1a35dd723bbf9333a11f6397dac77f1a5dadd3c5
MdePkg/BaseLib: implement SpeculationBarrier() for ARM and AArch64

Replace the dummy C implementation of SpeculationBarrier() with
implementations consisting of the recommended DSB SY + ISB sequence,
as recommended by ARM in the whitepaper "Cache Speculation Side-channels"
version 2.4, dated October 2018.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
MdePkg/Library/BaseLib/AArch64/SpeculationBarrier.S [new file with mode: 0644]
MdePkg/Library/BaseLib/AArch64/SpeculationBarrier.asm [new file with mode: 0644]
MdePkg/Library/BaseLib/Arm/SpeculationBarrier.S [new file with mode: 0644]
MdePkg/Library/BaseLib/Arm/SpeculationBarrier.asm [new file with mode: 0644]
MdePkg/Library/BaseLib/Arm/SpeculationBarrier.c [deleted file]
MdePkg/Library/BaseLib/BaseLib.inf