summaryrefslogtreecommitdiff
path: root/core/sboot.c
diff options
context:
space:
mode:
authorIan M. <ian@aptel.org>2026-09-11 05:00:24 +0000
committerIan M. <ian@aptel.org>2026-09-11 05:00:24 +0000
commitf8636711a0ce0431d7917dc6751b4762e6441b41 (patch)
tree060ba113ff656b14c83fd84bb210db6e93e8e6c8 /core/sboot.c
parent09a38cfa889fda6bd63063b0516950d18e5e2110 (diff)
core: sboot: Add menu
Signed-off-by: Ian M. <ian@aptel.org>
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 (;;);
}