]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/CpuDeadLoop.c
Changed LongJump() to _LongJump()
[mirror_edk2.git] / MdePkg / Library / BaseLib / CpuDeadLoop.c
1 /** @file
2 Base Library CPU Functions for all architectures.
3
4 Copyright (c) 2006, Intel Corporation<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 /**
16 Executes an infinite loop.
17
18 Forces the CPU to execute an infinite loop. A debugger may be used to skip
19 past the loop and the code that follows the loop must execute properly. This
20 implies that the infinite loop must not cause the code that follow it to be
21 optimized away.
22
23 **/
24 VOID
25 EFIAPI
26 CpuDeadLoop (
27 VOID
28 )
29 {
30 volatile UINTN Index;
31
32 for (Index = 0; Index == 0;);
33 }