diff options
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 (;;); } |
