X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FCpuDeadLoop.c;h=b3b7548fa5a8342b0dd60b7c40cec9ee8107856b;hb=HEAD;hp=6c0dac7a81484d1fc036faafca9e8d921ef28df1;hpb=1efcc4ae46f52e3845923ffbab68426e068709d2;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/CpuDeadLoop.c b/MdePkg/Library/BaseLib/CpuDeadLoop.c index 6c0dac7a81..b3b7548fa5 100644 --- a/MdePkg/Library/BaseLib/CpuDeadLoop.c +++ b/MdePkg/Library/BaseLib/CpuDeadLoop.c @@ -1,19 +1,11 @@ /** @file Base Library CPU Functions for all architectures. - Copyright (c) 2006, Intel Corporation
- All rights reserved. This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent **/ - - #include #include @@ -34,5 +26,7 @@ CpuDeadLoop ( { volatile UINTN Index; - for (Index = 0; 0 == Index;); + for (Index = 0; Index == 0;) { + CpuPause (); + } }