summaryrefslogtreecommitdiff
path: root/core/sboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/sboot.c')
-rw-r--r--core/sboot.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/core/sboot.c b/core/sboot.c
index 1649b7e..1a3d7d1 100644
--- a/core/sboot.c
+++ b/core/sboot.c
@@ -13,18 +13,9 @@ EFI_STATUS
EFIAPI
efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
{
- UINTN NrBootEntries;
- BOOT_PROTOCOL LastProtocol;
+ BOOT_ENTRY Entry;
InitializeLib(ImageHandle, SystemTable);
- NrBootEntries = NELEM(ConfigBootEntries);
-
- /* Ensure the list is terminated */
- LastProtocol = ConfigBootEntries[NrBootEntries - 1].Protocol;
- if (LastProtocol != PROTOCOL_END) {
- Print(L"fatal: boot entry list not terminated\n");
- Hcf();
- }
/* Disable the watchdog timer */
FwiSetWatchdogTimer(
@@ -40,5 +31,6 @@ efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
NELEM(ConfigBootEntries) - 1
);
+ SBootMenu(&Entry);
for (;;);
}