summaryrefslogtreecommitdiff
path: root/UefiCpuPkg/Library/BaseRiscVMmuLib/RiscVMmuCore.S
blob: 42eec4cbdf830905e6339c2d350f507d0e20c5e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** @file
*
*  Copyright (c) 2023, Ventana Micro Systems Inc. All Rights Reserved.<BR>
*
*  SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/

#include <Base.h>
#include <Register/RiscV64/RiscVImpl.h>

.text
  .align 3

//
// Local tlb flush all.
//
//
ASM_FUNC (RiscVLocalTlbFlushAll)
sfence.vma
ret

//
// Local tlb flush at a virtual address
// @retval a0 : virtual address.
//
ASM_FUNC (
  RiscVLocalTlbFlush
  )
sfence.vma a0
ret