REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
		
			
				
	
	
		
			33 lines
		
	
	
		
			681 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			681 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|   Base Library CPU Functions for all architectures.
 | |
| 
 | |
|   Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
 | |
|   SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| **/
 | |
| 
 | |
| #include <Base.h>
 | |
| #include <Library/BaseLib.h>
 | |
| 
 | |
| /**
 | |
|   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;
 | |
| 
 | |
|   for (Index = 0; Index == 0;) {
 | |
|     CpuPause ();
 | |
|   }
 | |
| }
 |