/* * Copyright (c) 2026, Apollo Telephone Laboratories. * Provided under the BSD-3 clause. */ #include #include #include #include EFI_STATUS EFIAPI efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) { UINTN NrBootEntries; BOOT_PROTOCOL LastProtocol; 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(); } Print( L"SBOOT %s - %d boot entrie(s)\n", SBOOT_VERSION, NELEM(ConfigBootEntries) - 1 ); for (;;); }