summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseCpuLib/LoongArch/CpuFlushTlb.S
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseCpuLib/LoongArch/CpuFlushTlb.S')
-rw-r--r--MdePkg/Library/BaseCpuLib/LoongArch/CpuFlushTlb.S15
1 files changed, 15 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseCpuLib/LoongArch/CpuFlushTlb.S b/MdePkg/Library/BaseCpuLib/LoongArch/CpuFlushTlb.S
new file mode 100644
index 0000000000..8b792f0a37
--- /dev/null
+++ b/MdePkg/Library/BaseCpuLib/LoongArch/CpuFlushTlb.S
@@ -0,0 +1,15 @@
+#------------------------------------------------------------------------------
+#
+# CpuFlushTlb() for LoongArch64
+#
+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+#------------------------------------------------------------------------------
+ASM_GLOBAL ASM_PFX(CpuFlushTlb)
+
+ASM_PFX(CpuFlushTlb):
+ tlbflush
+ jirl $zero, $ra, 0
+ .end