From 96ff1a24a7474b91c44a3dcd6f3abf3ec0542191 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Tue, 13 Feb 2024 01:04:02 +0000 Subject: reorganize a bit --- kjarna/start.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 kjarna/start.c (limited to 'kjarna/start.c') diff --git a/kjarna/start.c b/kjarna/start.c deleted file mode 100644 index 6a737b3..0000000 --- a/kjarna/start.c +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include -#include -#include - -#include "kjarna_efi.h" - -struct efi_context const *efi_context; -EFI_STATUS efi_errno = EFI_SUCCESS; - -EFI_STATUS _exit(EFI_STATUS status) -{ - return gBS->Exit(efi_context->handle, status, 0, nullptr); -} - -EFI_STATUS _start(EFI_HANDLE handle, EFI_SYSTEM_TABLE *system_table) -{ - struct efi_context app_context = { handle, system_table }; - efi_context = &app_context; - - int runtime_result = runtime_start(); - - if (runtime_result < 0) - { - efi_errno = EFI_ABORTED; - } - - return _exit(efi_errno); -} - -- cgit v1.3.1-1-g115d