MdePkg/BaseLib: Add MemoryFence implementation for RiscV64
Cc: Abner Chang <abner.chang@hpe.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Cc: Leif Lindholm <leif@nuviainc.com> Signed-off-by: Daniel Schaefer <daniel.schaefer@hpe.com> Reviewed-by: Abner Chang <abner.chang@hpe.com> Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
c32c5911c4
commit
097aeeb119
22
MdePkg/Library/BaseLib/RiscV64/MemoryFence.S
Normal file
22
MdePkg/Library/BaseLib/RiscV64/MemoryFence.S
Normal file
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
//
|
||||
// MemoryFence() for RiscV64
|
||||
//
|
||||
// Copyright (c) 2021, Hewlett Packard Enterprise Development. All rights reserved.
|
||||
//
|
||||
// SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
.text
|
||||
.p2align 2
|
||||
|
||||
ASM_GLOBAL ASM_PFX(MemoryFence)
|
||||
|
||||
//
|
||||
// Memory fence for RiscV64
|
||||
//
|
||||
//
|
||||
ASM_PFX(MemoryFence):
|
||||
fence // Fence on all memory and I/O
|
||||
ret
|
Reference in New Issue
Block a user