summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseLib/RiscV64/MemoryFence.S
blob: cc816836927a0b1b21c5854d1994dc36e4ddc2ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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