Discussion:
[edk2] [Patch] UefiCpuPkg/CpuExceptionLib: Add STATIC on global exception name strs
Jeff Fan
2015-07-10 05:25:04 UTC
Permalink
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <***@intel.com>
CC: Leif Lindholm <***@linaro.org>
CC: Feng Tian <***@intel.com>
---
UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c
index 5d28161..d1e6622 100644
--- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c
+++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c
@@ -28,8 +28,8 @@ RESERVED_VECTORS_DATA *mReservedVectors = NULL;
//
#define MAX_DEBUG_MESSAGE_LENGTH 0x100

-CONST CHAR8 mExceptionReservedStr[] = "Reserved";
-CONST CHAR8 *mExceptionNameStr[] = {
+STATIC CONST CHAR8 mExceptionReservedStr[] = "Reserved";
+STATIC CONST CHAR8 *mExceptionNameStr[] = {
"#DE - Divide Error",
"#DB - Debug",
"NMI Interrupt",
--
1.9.5.msysgit.0
Loading...