]>
Commit | Line | Data |
---|---|---|
e1f414b6 | 1 | /** @file\r |
2 | Base Library CPU Functions for all architectures.\r | |
3 | \r | |
bb817c56 | 4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r |
9344f092 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
e1f414b6 | 6 | \r |
7 | **/\r | |
8 | \r | |
2553c3f3 | 9 | #include <Base.h>\r |
46817e4e | 10 | #include <Library/BaseLib.h>\r |
e1f414b6 | 11 | \r |
12 | /**\r | |
13 | Executes an infinite loop.\r | |
14 | \r | |
15 | Forces the CPU to execute an infinite loop. A debugger may be used to skip\r | |
16 | past the loop and the code that follows the loop must execute properly. This\r | |
17 | implies that the infinite loop must not cause the code that follow it to be\r | |
18 | optimized away.\r | |
19 | \r | |
20 | **/\r | |
21 | VOID\r | |
22 | EFIAPI\r | |
23 | CpuDeadLoop (\r | |
24 | VOID\r | |
25 | )\r | |
26 | {\r | |
27 | volatile UINTN Index;\r | |
28 | \r | |
4bf2a5b0 | 29 | for (Index = 0; Index == 0;) {\r |
2f88bd3a | 30 | CpuPause ();\r |
4bf2a5b0 | 31 | }\r |
e1f414b6 | 32 | }\r |