feat: working bootloader and basic kernel (just dyes screen green)

This commit is contained in:
karina
2026-04-20 08:30:08 +04:00
parent 9b549d4184
commit 1ee5dcbd0b
9 changed files with 258 additions and 16 deletions
+35
View File
@@ -0,0 +1,35 @@
#pragma once
typedef unsigned int BIUInt32;
typedef unsigned long long BIUInt64;
typedef struct {
BIUInt32* base;
BIUInt64 baseSize;
BIUInt64 width;
BIUInt64 height;
BIUInt64 pitch;
} BIFramebuffer;
typedef struct {
void* map;
BIUInt64 mapSize;
BIUInt64 descriptorSize;
BIUInt32 mapKey;
BIUInt32 descriptorVersion;
} BIMemoryMap;
typedef struct {
BIUInt64 kernelSize;
void* kernelAddress;
} BIKernelInfo;
typedef struct {
BIUInt64 magic;
BIKernelInfo kernelInfo;
void* dtb;
BIMemoryMap memoryMap;
BIFramebuffer framebuffer;
} Bootinfo;
#define BOOTINFO_MAGIC 0x736F6E7961