feat: kernel is now elf

This commit is contained in:
karina
2026-04-26 09:32:07 +04:00
parent 1463402c6c
commit 6698c4ab3f
9 changed files with 137 additions and 42 deletions
@@ -0,0 +1,23 @@
#include "uefi.h"
efi_handle_t IM = NULL;
efi_system_table_t* ST = NULL;
efi_boot_services_t* BS = NULL;
efi_runtime_services_t* RT = NULL;
efi_status_t bootloader_main(void);
void __chkstk(void) {}
efi_status_t EFIAPI efi_main(efi_handle_t image, efi_system_table_t* system_table) {
if (image == NULL || system_table == NULL || system_table->BootServices == NULL) {
return EFI_UNSUPPORTED;
}
IM = image;
ST = system_table;
BS = system_table->BootServices;
RT = system_table->RuntimeServices;
return bootloader_main();
}