mirror of
https://github.com/johndoe6345789/MetalOS.git
synced 2026-05-02 17:45:50 +00:00
e66ef697f7
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
23 lines
640 B
C
23 lines
640 B
C
#ifndef METALOS_BOOTLOADER_BOOTLOADER_H
|
|
#define METALOS_BOOTLOADER_BOOTLOADER_H
|
|
|
|
#include "efi.h"
|
|
|
|
// Bootloader version
|
|
#define BOOTLOADER_VERSION_MAJOR 0
|
|
#define BOOTLOADER_VERSION_MINOR 1
|
|
#define BOOTLOADER_VERSION_PATCH 0
|
|
|
|
// Memory limits
|
|
#define KERNEL_LOAD_ADDRESS 0x100000 // 1MB mark
|
|
#define MAX_KERNEL_SIZE 0x1000000 // 16MB max
|
|
|
|
// Function declarations
|
|
EFI_STATUS initialize_graphics(EFI_HANDLE ImageHandle);
|
|
EFI_STATUS load_kernel(EFI_HANDLE ImageHandle);
|
|
void* get_rsdp(void);
|
|
void print_string(const CHAR16* str);
|
|
void print_status(const CHAR16* operation, EFI_STATUS status);
|
|
|
|
#endif // METALOS_BOOTLOADER_BOOTLOADER_H
|