mirror of https://github.com/acidanthera/audk.git
Move global variable to the top of C file for consistent coding style.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6255 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d251b34d2a
commit
44cfd8a827
|
@ -42,7 +42,29 @@ ARCHITECTURAL_PROTOCOL_ENTRY mArchProtocols[] = {
|
||||||
{ &gEfiRealTimeClockArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE }
|
{ &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.
|
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
|
Displays Architectural protocols that were not loaded and are required for DXE
|
||||||
|
|
Loading…
Reference in New Issue