]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Move global variable to the top of C file for consistent coding style.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Oct 2008 11:40:49 +0000 (11:40 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Oct 2008 11:40:49 +0000 (11:40 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6255 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c

index 6eacd233c18c80ccc057b350c377f8a2edae15f8..f67f03a835b8e68521d73534129cccb8e993a5fc 100644 (file)
@@ -42,7 +42,29 @@ ARCHITECTURAL_PROTOCOL_ENTRY  mArchProtocols[] = {
   { &gEfiRealTimeClockArchProtocolGuid,    (VOID **)NULL,            NULL, NULL, FALSE }\r
 };\r
 \r
+//\r
+// Following is needed to display missing architectural protocols in debug builds\r
+//\r
+typedef struct {\r
+  EFI_GUID                     *ProtocolGuid;\r
+  CHAR8                        *GuidString;\r
+} GUID_TO_STRING_PROTOCOL_ENTRY;\r
 \r
+GLOBAL_REMOVE_IF_UNREFERENCED CONST GUID_TO_STRING_PROTOCOL_ENTRY MissingProtocols[] = {\r
+  { &gEfiSecurityArchProtocolGuid,         "Security"           },\r
+  { &gEfiCpuArchProtocolGuid,              "CPU"                },\r
+  { &gEfiMetronomeArchProtocolGuid,        "Metronome"          },\r
+  { &gEfiTimerArchProtocolGuid,            "Timer"              },\r
+  { &gEfiBdsArchProtocolGuid,              "Bds"                },\r
+  { &gEfiWatchdogTimerArchProtocolGuid,    "Watchdog Timer"     },\r
+  { &gEfiRuntimeArchProtocolGuid,          "Runtime"            },\r
+  { &gEfiVariableArchProtocolGuid,         "Variable"           },\r
+  { &gEfiVariableWriteArchProtocolGuid,    "Variable Write"     },\r
+  { &gEfiCapsuleArchProtocolGuid,          "Capsule"            },\r
+  { &gEfiMonotonicCounterArchProtocolGuid, "Monotonic Counter"  },\r
+  { &gEfiResetArchProtocolGuid,            "Reset"              },\r
+  { &gEfiRealTimeClockArchProtocolGuid,    "Real Time Clock"    }\r
+};\r
 \r
 /**\r
   Return TRUE if all AP services are availible.\r
@@ -211,30 +233,6 @@ CoreNotifyOnArchProtocolInstallation (
   }\r
 }\r
 \r
-//\r
-// Following is needed to display missing architectural protocols in debug builds\r
-//\r
-typedef struct {\r
-  EFI_GUID                     *ProtocolGuid;\r
-  CHAR8                        *GuidString;\r
-} GUID_TO_STRING_PROTOCOL_ENTRY;\r
-\r
-GLOBAL_REMOVE_IF_UNREFERENCED CONST GUID_TO_STRING_PROTOCOL_ENTRY MissingProtocols[] = {\r
-  { &gEfiSecurityArchProtocolGuid,         "Security"           },\r
-  { &gEfiCpuArchProtocolGuid,              "CPU"                },\r
-  { &gEfiMetronomeArchProtocolGuid,        "Metronome"          },\r
-  { &gEfiTimerArchProtocolGuid,            "Timer"              },\r
-  { &gEfiBdsArchProtocolGuid,              "Bds"                },\r
-  { &gEfiWatchdogTimerArchProtocolGuid,    "Watchdog Timer"     },\r
-  { &gEfiRuntimeArchProtocolGuid,          "Runtime"            },\r
-  { &gEfiVariableArchProtocolGuid,         "Variable"           },\r
-  { &gEfiVariableWriteArchProtocolGuid,    "Variable Write"     },\r
-  { &gEfiCapsuleArchProtocolGuid,          "Capsule"            },\r
-  { &gEfiMonotonicCounterArchProtocolGuid, "Monotonic Counter"  },\r
-  { &gEfiResetArchProtocolGuid,            "Reset"              },\r
-  { &gEfiRealTimeClockArchProtocolGuid,    "Real Time Clock"    }\r
-};\r
-\r
 \r
 /**\r
   Displays Architectural protocols that were not loaded and are required for DXE\r