]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/RiscV64/MemoryFence.S
MdePkg/BaseLib: Add MemoryFence implementation for RiscV64
[mirror_edk2.git] / MdePkg / Library / BaseLib / RiscV64 / MemoryFence.S
1 //------------------------------------------------------------------------------
2 //
3 // MemoryFence() for RiscV64
4 //
5 // Copyright (c) 2021, Hewlett Packard Enterprise Development. All rights reserved.
6 //
7 // SPDX-License-Identifier: BSD-2-Clause-Patent
8 //
9 //------------------------------------------------------------------------------
10
11 .text
12 .p2align 2
13
14 ASM_GLOBAL ASM_PFX(MemoryFence)
15
16 //
17 // Memory fence for RiscV64
18 //
19 //
20 ASM_PFX(MemoryFence):
21 fence // Fence on all memory and I/O
22 ret