]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
2c7e5c2f HT |
3 | Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | CpuDeadLoop.c\r | |
15 | \r | |
16 | Abstract: \r | |
17 | \r | |
18 | Base Library CPU Functions for all architectures.\r | |
19 | \r | |
20 | --*/\r | |
21 | \r | |
c7f33ca4 | 22 | #include "BaseLibInternals.h"\r |
3eb9473e | 23 | \r |
24 | /**\r | |
25 | Executes an infinite loop.\r | |
26 | \r | |
27 | Forces the CPU to execute an infinite loop. A debugger may be used to skip\r | |
28 | past the loop and the code that follows the loop must execute properly. This\r | |
29 | implies that the infinite loop must not cause the code that follow it to be\r | |
30 | optimized away.\r | |
31 | \r | |
32 | **/\r | |
33 | VOID\r | |
34 | EFIAPI\r | |
35 | CpuDeadLoop (\r | |
36 | VOID\r | |
37 | )\r | |
38 | {\r | |
39 | volatile UINTN Index;\r | |
40 | \r | |
41 | for (Index = 0; Index == 0;);\r | |
42 | }\r |