Implemented simple Multiboot1 kernel

This commit is contained in:
2024-12-29 22:02:48 +01:00
parent 84a0d49942
commit bfe67a791e
14 changed files with 488 additions and 25 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "multiboot.h"
#define FLAGS (MBH_PAGE_ALIGN | MBH_GRAPH_INFO)
__attribute__ ((section(".multiboot")))
struct multiboot_header mbh = {
.magic = HEAD_MAGIC,
.flags = FLAGS,
.checksum = -(HEAD_MAGIC + FLAGS),
// We don't need the a.out format fields
.mode_type = 0,
.width = 1920,
.height = 1080,
.depth = 32,
};