\r
--*/\r
\r
-#include "Generic/Bds.h"\r
#include "BdsPlatform.h"\r
-#include "Generic/String.h"\r
-#include "Generic/Language.h"\r
-#include "Generic/FrontPage.h"\r
\r
CHAR16 mFirmwareVendor[] = L"TianoCore.org";\r
\r
//\r
gBS->CalculateCrc32 ((VOID *) gST, sizeof (EFI_SYSTEM_TABLE), &gST->Hdr.CRC32);\r
\r
- //\r
- // Initialize the platform specific string and language\r
- //\r
- InitializeStringSupport ();\r
- InitializeLanguage (TRUE);\r
- InitializeFrontPage (FALSE);\r
-\r
}\r
\r
EFI_STATUS\r
\r
}\r
\r
-VOID\r
-PlatformBdsBootSuccess (\r
- IN BDS_COMMON_OPTION *Option\r
- )\r
-/*++\r
-\r
-Routine Description:\r
- \r
- Hook point after a boot attempt succeeds. We don't expect a boot option to\r
- return, so the EFI 1.0 specification defines that you will default to an\r
- interactive mode and stop processing the BootOrder list in this case. This\r
- is alos a platform implementation and can be customized by IBV/OEM.\r
-\r
-Arguments:\r
-\r
- Option - Pointer to Boot Option that succeeded to boot.\r
-\r
-Returns:\r
- \r
- None.\r
-\r
---*/\r
-{\r
- CHAR16 *TmpStr;\r
-\r
- //\r
- // If Boot returned with EFI_SUCCESS and there is not in the boot device\r
- // select loop then we need to pop up a UI and wait for user input.\r
- //\r
- TmpStr = GetStringById (STRING_TOKEN (STR_BOOT_SUCCEEDED));\r
- if (TmpStr != NULL) {\r
- BdsLibOutputStrings (gST->ConOut, TmpStr, Option->Description, L"\n\r", NULL);\r
- gBS->FreePool (TmpStr);\r
- }\r
-}\r
-\r
-VOID\r
-PlatformBdsBootFail (\r
- IN BDS_COMMON_OPTION *Option,\r
- IN EFI_STATUS Status,\r
- IN CHAR16 *ExitData,\r
- IN UINTN ExitDataSize\r
- )\r
-/*++\r
-\r
-Routine Description:\r
- \r
- Hook point after a boot attempt fails.\r
-\r
-Arguments:\r
- \r
- Option - Pointer to Boot Option that failed to boot.\r
-\r
- Status - Status returned from failed boot.\r
-\r
- ExitData - Exit data returned from failed boot.\r
-\r
- ExitDataSize - Exit data size returned from failed boot.\r
-\r
-Returns:\r
- \r
- None.\r
-\r
---*/\r
-{\r
- CHAR16 *TmpStr;\r
-\r
- //\r
- // If Boot returned with failed status then we need to pop up a UI and wait\r
- // for user input.\r
- //\r
- TmpStr = GetStringById (STRING_TOKEN (STR_BOOT_FAILED));\r
- if (TmpStr != NULL) {\r
- BdsLibOutputStrings (gST->ConOut, TmpStr, Option->Description, L"\n\r", NULL);\r
- gBS->FreePool (TmpStr);\r
- }\r
-\r
-}\r
-\r
EFI_STATUS\r
PlatformBdsNoConsoleAction (\r
VOID\r