summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseLib/RiscV64/FlushCache.S
blob: 7c10fdd268af3aa2711bd31b7a88784e8ad06fd9 (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(RiscVInvalidateInstCacheAsm)
ASM_GLOBAL ASM_PFX(RiscVInvalidateDataCacheAsm)

ASM_PFX(RiscVInvalidateInstCacheAsm):
    fence.i
    ret

ASM_PFX(RiscVInvalidateDataCacheAsm):
    fence
    ret