]>
Commit | Line | Data |
---|---|---|
e0337bfa | 1 | /** @file\r |
2 | CpuSleep function.\r | |
3 | \r | |
de2d3419 HT |
4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r |
5 | This program and the accompanying materials\r | |
e0337bfa | 6 | are licensed and made available under the terms and conditions of the BSD License\r |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
35a17154 | 8 | http://opensource.org/licenses/bsd-license.php.\r |
e0337bfa | 9 | \r |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
e0337bfa | 15 | \r |
f80b0830 | 16 | /**\r |
17 | Places the CPU in a sleep state until an interrupt is received.\r | |
e0337bfa | 18 | \r |
f80b0830 | 19 | Places the CPU in a sleep state until an interrupt is received. If interrupts\r |
20 | are disabled prior to calling this function, then the CPU will be placed in a\r | |
21 | sleep state indefinitely.\r | |
22 | \r | |
23 | **/\r | |
e0337bfa | 24 | VOID\r |
25 | EFIAPI\r | |
26 | CpuSleep (\r | |
27 | VOID\r | |
28 | )\r | |
29 | {\r | |
30 | _asm {\r | |
31 | hlt\r | |
32 | }\r | |
33 | }\r | |
34 | \r |