Kernel/Bootloader: banan-os can now be booted with my bootloader :D

This commit is contained in:
2023-11-17 20:33:02 +02:00
parent d1444761a3
commit cb5a5d3ed1
5 changed files with 75 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include <stdint.h>
#define BANAN_BOOTLOADER_MAGIC 0xD3C60CFF
struct BananBootloaderMemoryMapEntry
{
uint64_t address;
uint64_t length;
uint32_t type;
} __attribute__((packed));
struct BananBootloaderMemoryMapInfo
{
uint32_t entry_count;
BananBootloaderMemoryMapEntry entries[];
} __attribute__((packed));
struct BananBootloaderInfo
{
uint32_t command_line_addr;
uint32_t memory_map_addr;
} __attribute__((packed));