summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/DebugSupportDxe/Ipf
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-31 02:04:40 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-31 02:04:40 +0000
commit19b15d6310e68da4656d04c6549ad615297c785d (patch)
tree6c9903d9b07e4175fbbf77d947668a77da404fbf /MdeModulePkg/Universal/DebugSupportDxe/Ipf
parent8630d2ddf18dd58e98d308d2c7d35fb159bc2fa2 (diff)
downloadedk2-platforms-19b15d6310e68da4656d04c6549ad615297c785d.tar.xz
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
Diffstat (limited to 'MdeModulePkg/Universal/DebugSupportDxe/Ipf')
-rw-r--r--MdeModulePkg/Universal/DebugSupportDxe/Ipf/plDebugSupport.c18
1 files changed, 9 insertions, 9 deletions
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