This commit is contained in:
nub31
2025-08-23 19:21:41 +02:00
parent 624c90ce88
commit 9cb2959a77
2 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
menuentry "nub-os" { menuentry "nub-os" {
multiboot /boot/kernel.bin multiboot2 /boot/kernel.bin
} }

View File

@@ -1,14 +1,20 @@
extern kernel_main extern kernel_main
%define MAGIC 0x1BADB002 %define MAGIC 0xe85250d6
%define FLAGS 0x0 %define ARCH 0
%define CHECKSUM -(MAGIC + FLAGS) %define LEN (header_end - header_start)
%define CHECKSUM -(MAGIC + ARCH + LEN)
section .multiboot section .multiboot
align 4 header_start:
align 8
dd MAGIC dd MAGIC
dd FLAGS dd ARCH
dd LEN
dd CHECKSUM dd CHECKSUM
dw 0
dd 8
header_end:
section .bss section .bss
align 16 align 16