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