From 19b15d6310e68da4656d04c6549ad615297c785d Mon Sep 17 00:00:00 2001 From: qwang12 Date: Fri, 31 Oct 2008 02:04:40 +0000 Subject: Change functional static variable to Global variable. No STATIC modifier is recommended though it is defined in Base.h. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6313 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Universal/DebugSupportDxe/Ipf/plDebugSupport.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'MdeModulePkg/Universal/DebugSupportDxe') diff --git a/MdeModulePkg/Universal/DebugSupportDxe/Ipf/plDebugSupport.c b/MdeModulePkg/Universal/DebugSupportDxe/Ipf/plDebugSupport.c index 7b6e75dc4a..cf9bcfef01 100644 --- a/MdeModulePkg/Universal/DebugSupportDxe/Ipf/plDebugSupport.c +++ b/MdeModulePkg/Universal/DebugSupportDxe/Ipf/plDebugSupport.c @@ -1,7 +1,7 @@ /**@file IPF specific debug support functions -Copyright (c) 2006, Intel Corporation +Copyright (c) 2006 - 2008, 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 @@ -17,6 +17,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // #include "plDebugSupport.h" +BOOLEAN mInHandler = FALSE; + typedef struct { UINT64 low; UINT64 high; @@ -156,26 +158,24 @@ Returns: --*/ { - STATIC BOOLEAN InHandler = FALSE; - DEBUG_CODE_BEGIN (); - if (InHandler) { + if (mInHandler) { DEBUG ((EFI_D_INFO, "ERROR: Re-entered debugger!\n" " ExceptionType == %X\n" " Context == %X\n" " Context.SystemContextIpf->CrIip == %X\n" " Context.SystemContextIpf->CrIpsr == %X\n" - " InHandler == %X\n", + " mInHandler == %X\n", ExceptionType, Context, Context.SystemContextIpf->CrIip, Context.SystemContextIpf->CrIpsr, - InHandler)); + mInHandler)); } DEBUG_CODE_END (); - ASSERT (!InHandler); - InHandler = TRUE; + ASSERT (!mInHandler); + mInHandler = TRUE; if (IvtEntryTable[ExceptionType].RegisteredCallback != NULL) { if (ExceptionType != EXCEPT_IPF_EXTERNAL_INTERRUPT) { IvtEntryTable[ExceptionType].RegisteredCallback (ExceptionType, Context.SystemContextIpf); @@ -186,7 +186,7 @@ Returns: ASSERT (0); } - InHandler = FALSE; + mInHandler = FALSE; } VOID -- cgit v1.2.3