Loaded a kernel

This commit is contained in:
2026-02-26 17:41:53 +00:00
parent 8993630081
commit f266dd7c8c
5 changed files with 365 additions and 79 deletions

19
boot_info.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef BOOT_INFO_H
#define BOOT_INFO_H
#include <efi.h>
typedef UINTN (*KernelPrintFn)(const CHAR16 *Format, ...);
typedef struct {
EFI_SYSTEM_TABLE *SystemTable;
KernelPrintFn print;
EFI_STATUS (*clear_screen)(void);
EFI_STATUS (*set_attribute)(UINTN Attribute);
EFI_STATUS (*read_key)(EFI_INPUT_KEY *Key);
void (*shutdown)(void);
} BootInfo;
typedef void (*KernelEntryFn)(BootInfo *Boot);
#endif