]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/CpuPause.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / CpuPause.c
1 /** @file
2 CpuPause function.
3
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 /**
10 Requests CPU to pause for a short period of time.
11
12 Requests CPU to pause for a short period of time. Typically used in MP
13 systems to prevent memory starvation while waiting for a spin lock.
14
15 **/
16 VOID
17 EFIAPI
18 CpuPause (
19 VOID
20 )
21 {
22 _asm {
23 pause
24 }
25 }