summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseLib/RiscV64/FlushCache.S
blob: 8cfb850979961110aa2fdb832f86f4a76783d3ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//------------------------------------------------------------------------------
//
// RISC-V cache operation.
//
// Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//------------------------------------------------------------------------------

.align 3
ASM_GLOBAL ASM_PFX(RiscVInvalidateInstCacheFenceAsm)
ASM_GLOBAL ASM_PFX(RiscVInvalidateDataCacheFenceAsm)

ASM_PFX(RiscVInvalidateInstCacheFenceAsm):
    fence.i
    ret

ASM_PFX(RiscVInvalidateDataCacheFenceAsm):
    fence
    ret