From d1ae146b1fcecdd6ae688cedf523a5be0d7980c5 Mon Sep 17 00:00:00 2001 From: "Ian M." Date: Fri, 11 Sep 2026 05:26:15 +0000 Subject: core: sboot: Read kernel binary Signed-off-by: Ian M. --- core/sboot.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/sboot.c') diff --git a/core/sboot.c b/core/sboot.c index 5511ca4..604c768 100644 --- a/core/sboot.c +++ b/core/sboot.c @@ -10,6 +10,10 @@ #include #include +/* Private globals */ +static UINT8 *KernelBin = NULL; + +/* Globals */ EFI_FILE_HANDLE gBootVolume; EFI_STATUS @@ -41,5 +45,10 @@ efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) ); SBootMenu(&Entry); + Status = FileReadToBuffer(Entry.BootPath, (VOID **)&KernelBin); + if (EFI_ERROR(Status)) { + Hcf(); + } + for (;;); } -- cgit v1.2.3