]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/RiscV64/CpuPause.c
9931bad29474b6c63c7b170dbd8b7ef9159b7376
[mirror_edk2.git] / MdePkg / Library / BaseLib / RiscV64 / CpuPause.c
1 /** @file
2 CPU pause for RISC-V
3
4 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7 **/
8
9 #include "BaseLibInternals.h"
10
11 extern VOID RiscVCpuPause (VOID);
12
13
14 /**
15 Requests CPU to pause for a short period of time.
16
17 Requests CPU to pause for a short period of time. Typically used in MP
18 systems to prevent memory starvation while waiting for a spin lock.
19
20 **/
21 VOID
22 EFIAPI
23 CpuPause (
24 VOID
25 )
26 {
27 RiscVCpuPause ();
28 }
29