summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseCpuLib/RiscV/Cpu.S
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseCpuLib/RiscV/Cpu.S')
-rw-r--r--MdePkg/Library/BaseCpuLib/RiscV/Cpu.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseCpuLib/RiscV/Cpu.S b/MdePkg/Library/BaseCpuLib/RiscV/Cpu.S
new file mode 100644
index 0000000000..375b91d314
--- /dev/null
+++ b/MdePkg/Library/BaseCpuLib/RiscV/Cpu.S
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+//
+// CpuSleep for RISC-V
+//
+// Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+// SPDX-License-Identifier: BSD-2-Clause-Patent
+//
+//------------------------------------------------------------------------------
+.data
+.align 3
+.section .text
+
+.global ASM_PFX(_CpuSleep)
+
+ASM_PFX(_CpuSleep):
+ wfi
+ ret
+
+