summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorYong Li <yong.li@intel.com>2023-04-20 12:36:40 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-06-06 20:37:18 +0000
commitded0b489af09cde5afa05d74acdb12cd4b4f8394 (patch)
tree8c7d57f12a2c40bf3f30f7050fbf15521bb067ae /MdeModulePkg
parentd189de3b0a2f44f4c9b87ed120be16569ea19b51 (diff)
downloadedk2-ded0b489af09cde5afa05d74acdb12cd4b4f8394.tar.gz
edk2-ded0b489af09cde5afa05d74acdb12cd4b4f8394.tar.bz2
edk2-ded0b489af09cde5afa05d74acdb12cd4b4f8394.zip
MdePkg/BaseLib: Add SpeculationBarrier implementation for RiscV64
Implement the SpeculationBarrier with implementations consisting of fence instruction which provides finer-grain memory orderings. Perform Data Barrier in RiscV: fence rw,rw Perform Instruction Barrier in RiscV: fence.i; fence r,r More detail is in Appendix A: RVWMO Explanatory Material in https://github.com/riscv/riscv-isa-manual This API is first introduced in the below commits for IA32 and x64 https://github.com/tianocore/edk2/commit/d9f1cac51bd354507e880e614d11a1dc160d38a3 https://github.com/tianocore/edk2/commit/e83d841fdc2878959185c4c6cc38a7a1e88377a4 and below the commit for ARM and AArch64 implementation https://github.com/tianocore/edk2/commit/c0959b4426b2da45cdb8146a5116bb4fd9b86534 This commit is to add the RiscV64 implementation which will be used by variable service under Variable/RuntimeDxe Cc: Andrei Warkentin <andrei.warkentin@intel.com> Cc: Evan Chai <evan.chai@intel.com> Cc: Sunil V L <sunilvl@ventanamicro.com> Cc: Tuan Phan <tphan@ventanamicro.com> Signed-off-by: Yong Li <yong.li@intel.com> Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Diffstat (limited to 'MdeModulePkg')
0 files changed, 0 insertions, 0 deletions