]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseCpuLib/Ia32/CpuSleepGcc.c
Minor grammatical work--mostly adding periods. Sending separately a list of files...
[mirror_edk2.git] / MdePkg / Library / BaseCpuLib / Ia32 / CpuSleepGcc.c
CommitLineData
cf683fed 1/** @file\r
2 CpuSleep function for Ia32/X64 GCC.\r
3\r
c9b34b8c
HT
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
5 Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
6 This program and the accompanying materials\r
cf683fed 7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
35a17154 9 http://opensource.org/licenses/bsd-license.php.\r
cf683fed 10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16\r
17/**\r
18 Places the CPU in a sleep state until an interrupt is received.\r
19\r
20 Places the CPU in a sleep state until an interrupt is received. If interrupts\r
21 are disabled prior to calling this function, then the CPU will be placed in a\r
22 sleep state indefinitely.\r
23\r
24**/\r
25VOID\r
26EFIAPI\r
27CpuSleep (\r
28 VOID\r
29 )\r
30{\r
31 __asm__ __volatile__ ("hlt"::: "memory");\r
32}\r
33\r