2007-06-22 05:21:45 +02:00
|
|
|
/** @file
|
|
|
|
Base Library CPU Functions for all architectures.
|
|
|
|
|
2010-04-23 18:00:47 +02:00
|
|
|
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:00 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-06-22 05:21:45 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
2007-07-06 16:00:46 +02:00
|
|
|
#include <Base.h>
|
2007-08-17 23:04:27 +02:00
|
|
|
#include <Library/BaseLib.h>
|
2007-06-22 05:21:45 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
Executes an infinite loop.
|
|
|
|
|
|
|
|
Forces the CPU to execute an infinite loop. A debugger may be used to skip
|
|
|
|
past the loop and the code that follows the loop must execute properly. This
|
|
|
|
implies that the infinite loop must not cause the code that follow it to be
|
|
|
|
optimized away.
|
|
|
|
|
|
|
|
**/
|
|
|
|
VOID
|
|
|
|
EFIAPI
|
|
|
|
CpuDeadLoop (
|
|
|
|
VOID
|
|
|
|
)
|
|
|
|
{
|
|
|
|
volatile UINTN Index;
|
|
|
|
|
2021-03-19 19:14:21 +01:00
|
|
|
for (Index = 0; Index == 0;) {
|
|
|
|
CpuPause ();
|
|
|
|
}
|
2007-06-22 05:21:45 +02:00
|
|
|
}
|