Changeset View
Changeset View
Standalone View
Standalone View
stand/efi/loader/main.c
Show First 20 Lines • Show All 958 Lines • ▼ Show 20 Lines | #define CON_MASK (RB_SERIAL | RB_MULTIPLE) | ||||
* watchdog timer and since we're an interactive program, we don't | * watchdog timer and since we're an interactive program, we don't | ||||
* want to wait until the user types "quit". The timer may have | * want to wait until the user types "quit". The timer may have | ||||
* fired by then. We don't care if this fails. It does not prevent | * fired by then. We don't care if this fails. It does not prevent | ||||
* normal functioning in any way... | * normal functioning in any way... | ||||
*/ | */ | ||||
BS->SetWatchdogTimer(0, 0, 0, NULL); | BS->SetWatchdogTimer(0, 0, 0, NULL); | ||||
/* | /* | ||||
* Initialize the trusted/forbidden certificates from UEFI. | |||||
* They will be later used to verify the manifest(s), | |||||
* which should contain hashes of verified files. | |||||
* This needs to be initialized before any configuration files | |||||
* are loaded. | |||||
*/ | |||||
#ifdef EFI_SECUREBOOT | |||||
ve_efi_init(); | |||||
#endif | |||||
/* | |||||
* Try and find a good currdev based on the image that was booted. | * Try and find a good currdev based on the image that was booted. | ||||
* It might be desirable here to have a short pause to allow falling | * It might be desirable here to have a short pause to allow falling | ||||
* through to the boot loader instead of returning instantly to follow | * through to the boot loader instead of returning instantly to follow | ||||
* the boot protocol and also allow an escape hatch for users wishing | * the boot protocol and also allow an escape hatch for users wishing | ||||
* to try something different. | * to try something different. | ||||
*/ | */ | ||||
if (find_currdev(img, uefi_boot_mgr, is_last, boot_info, bisz) != 0) | if (find_currdev(img, uefi_boot_mgr, is_last, boot_info, bisz) != 0) | ||||
if (!interactive_interrupt("Failed to find bootable partition")) | if (!interactive_interrupt("Failed to find bootable partition")) | ||||
▲ Show 20 Lines • Show All 441 Lines • Show Last 20 Lines |