summaryrefslogtreecommitdiff
path: root/ArmPkg
diff options
context:
space:
mode:
authorAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-15 18:33:26 +0000
committerAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-15 18:33:26 +0000
commit79b9790fb89909640536c90f7e30acd1737d705f (patch)
tree8cf525a1d722a10312ce9d6150d63bed3cf0a884 /ArmPkg
parent235605b5c7f59f0caea49edf328e766da1c2801f (diff)
downloadedk2-platforms-79b9790fb89909640536c90f7e30acd1737d705f.tar.xz
Minor update to move array into function to dead strip better on release builds
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9778 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg')
-rw-r--r--ArmPkg/Drivers/CpuDxe/Exception.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/ArmPkg/Drivers/CpuDxe/Exception.c b/ArmPkg/Drivers/CpuDxe/Exception.c
index bc67fc44ce..f0b682d18d 100644
--- a/ArmPkg/Drivers/CpuDxe/Exception.c
+++ b/ArmPkg/Drivers/CpuDxe/Exception.c
@@ -164,20 +164,6 @@ typedef struct {
CHAR8 Char;
} CPSR_CHAR;
-CPSR_CHAR gCpsrChar[] = {
- { 31, 'n' },
- { 30, 'z' },
- { 29, 'c' },
- { 28, 'v' },
- { 27, 'q' },
-
- { 8, 'a' },
- { 7, 'i' },
- { 6, 'f' },
- { 5, 't' },
- { 0, '?' }
-};
-
VOID
CpsrString (
@@ -188,10 +174,23 @@ CpsrString (
UINTN Index;
CHAR8 *Str = ReturnStr;
CHAR8 *ModeStr;
+ CPSR_CHAR CpsrChar[] = {
+ { 31, 'n' },
+ { 30, 'z' },
+ { 29, 'c' },
+ { 28, 'v' },
+
+ { 9, 'e' },
+ { 8, 'a' },
+ { 7, 'i' },
+ { 6, 'f' },
+ { 5, 't' },
+ { 0, '?' }
+ };
- for (Index = 0; gCpsrChar[Index].Bit != 0; Index++, Str++) {
- *Str = gCpsrChar[Index].Char;
- if ((Cpsr & (1 << gCpsrChar[Index].Bit)) != 0) {
+ for (Index = 0; CpsrChar[Index].Bit != 0; Index++, Str++) {
+ *Str = CpsrChar[Index].Char;
+ if ((Cpsr & (1 << CpsrChar[Index].Bit)) != 0) {
// Concert to upper case if bit is set
*Str &= ~0x20;
}