diff options
| author | Ada Christine <adachristine18@gmail.com> | 2024-03-03 08:44:42 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2024-03-03 08:44:42 +0000 |
| commit | f61da8be06fdfebc598cba783e78117319231140 (patch) | |
| tree | 0ef21f89e98a985ab5d985aaac1e032c868e8b81 /kjarna/efi/start.c | |
| parent | 9681d6a6cbde12b00beab62683b8db98f680ba2b (diff) | |
build changes
Diffstat (limited to 'kjarna/efi/start.c')
| -rw-r--r-- | kjarna/efi/start.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/kjarna/efi/start.c b/kjarna/efi/start.c deleted file mode 100644 index 8ef8cbe..0000000 --- a/kjarna/efi/start.c +++ /dev/null @@ -1,32 +0,0 @@ -#include <efi/types.h> -#include <efi/error.h> -#include <efi/media.h> -#include <efi/tables.h> - -#include "../kjarna.h" -#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; - - system_table->ConOut->ClearScreen(system_table->ConOut); - - if (main(0, nullptr) != 0) - { - efi_errno = EFI_ABORTED; - } - - - return _exit(efi_errno); -} - |
