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