feat: kernel is now elf
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user