]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/CpuPause.c
MdePkg: Replace BSD License with BSD+Patent License
[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
11
12 /**
13 Requests CPU to pause for a short period of time.
14
15 Requests CPU to pause for a short period of time. Typically used in MP
16 systems to prevent memory starvation while waiting for a spin lock.
17
18 **/
19 VOID
20 EFIAPI
21 CpuPause (
22 VOID
23 )
24 {
25 _asm {
26 pause
27 }
28 }
29