diff options
| author | Ian M. <ian@aptel.org> | 2026-09-11 05:26:15 +0000 |
|---|---|---|
| committer | Ian M. <ian@aptel.org> | 2026-09-11 05:28:59 +0000 |
| commit | d1ae146b1fcecdd6ae688cedf523a5be0d7980c5 (patch) | |
| tree | 8a4fc10f7cd365ee0f6beb3f23fc0145cc426835 /core/sboot.c | |
| parent | 3b895e69140aa265929871217df9d34e40bad3fe (diff) | |
core: sboot: Read kernel binary
Signed-off-by: Ian M. <ian@aptel.org>
Diffstat (limited to 'core/sboot.c')
| -rw-r--r-- | core/sboot.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <sboot/fwi.h> #include <sboot/file.h> +/* 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 (;;); } |
