]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/CpuPause.c
Update copyright for files modified in this year
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / CpuPause.c
1 /** @file
2 CpuPause function.
3
4 Copyright (c) 2006 - 2008, Intel Corporation<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15
16
17
18 /**
19 Requests CPU to pause for a short period of time.
20
21 Requests CPU to pause for a short period of time. Typically used in MP
22 systems to prevent memory starvation while waiting for a spin lock.
23
24 **/
25 VOID
26 EFIAPI
27 CpuPause (
28 VOID
29 )
30 {
31 _asm {
32 pause
33 }
34 }
35