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