2. Added ASSERT (FLASE) in SwitchStack ().
3. Removed unreached branch from UefiNotTiano.c.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2510
6f19259b-4bc3-4df7-8a09-
765794883524
{ &gEfiRuntimeArchProtocolGuid, (VOID **)&gRuntime, NULL, NULL, FALSE },\r
{ &gEfiVariableArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
{ &gEfiVariableWriteArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
{ &gEfiRuntimeArchProtocolGuid, (VOID **)&gRuntime, NULL, NULL, FALSE },\r
{ &gEfiVariableArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
{ &gEfiVariableWriteArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
-#ifndef MDE_CPU_IPF\r
- //\r
- // UEFI 2.0 added support for Capsule services. DXE CIS ??? Added support for this AP\r
- //\r
{ &gEfiCapsuleArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE},\r
{ &gEfiCapsuleArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE},\r
{ &gEfiMonotonicCounterArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
{ &gEfiResetArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
{ &gEfiRealTimeClockArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
{ &gEfiMonotonicCounterArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
{ &gEfiResetArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
{ &gEfiRealTimeClockArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
\r
InternalSwitchStack (EntryPoint, Context1, Context2, NewStack, Marker);\r
\r
\r
InternalSwitchStack (EntryPoint, Context1, Context2, NewStack, Marker);\r
\r
+ //\r
+ // InternalSwitchStack () will never return\r
+ //\r
+ ASSERT (FALSE);\r
NotifyContext,\r
LegacyBootEvent\r
);\r
NotifyContext,\r
LegacyBootEvent\r
);\r
- } else if (gST->Hdr.Revision >= 0x00020000 ) {\r
//\r
// For UEFI 2.0 and the future use an Event Group\r
//\r
//\r
// For UEFI 2.0 and the future use an Event Group\r
//\r
&gEfiEventLegacyBootGuid,\r
LegacyBootEvent\r
);\r
&gEfiEventLegacyBootGuid,\r
LegacyBootEvent\r
);\r
- } else {\r
- //\r
- // For EFI 1.10 with no Tiano extensions return unsupported\r
- //\r
- Status = EFI_UNSUPPORTED;\r
NotifyContext,\r
ReadyToBootEvent\r
);\r
NotifyContext,\r
ReadyToBootEvent\r
);\r
- } else if (gST->Hdr.Revision >= 0x00020000) {\r
//\r
// For UEFI 2.0 and the future use an Event Group\r
//\r
//\r
// For UEFI 2.0 and the future use an Event Group\r
//\r
&gEfiEventReadyToBootGuid,\r
ReadyToBootEvent\r
);\r
&gEfiEventReadyToBootGuid,\r
ReadyToBootEvent\r
);\r
- } else {\r
- //\r
- // For EFI 1.10 with no Tiano extensions return unsupported\r
- //\r
- Status = EFI_UNSUPPORTED;\r