...
This commit is contained in:
2
grub.cfg
2
grub.cfg
@@ -1,3 +1,3 @@
|
||||
menuentry "nub-os" {
|
||||
multiboot /boot/kernel.bin
|
||||
multiboot2 /boot/kernel.bin
|
||||
}
|
||||
|
||||
16
src/boot.asm
16
src/boot.asm
@@ -1,14 +1,20 @@
|
||||
extern kernel_main
|
||||
|
||||
%define MAGIC 0x1BADB002
|
||||
%define FLAGS 0x0
|
||||
%define CHECKSUM -(MAGIC + FLAGS)
|
||||
%define MAGIC 0xe85250d6
|
||||
%define ARCH 0
|
||||
%define LEN (header_end - header_start)
|
||||
%define CHECKSUM -(MAGIC + ARCH + LEN)
|
||||
|
||||
section .multiboot
|
||||
align 4
|
||||
header_start:
|
||||
align 8
|
||||
dd MAGIC
|
||||
dd FLAGS
|
||||
dd ARCH
|
||||
dd LEN
|
||||
dd CHECKSUM
|
||||
dw 0
|
||||
dd 8
|
||||
header_end:
|
||||
|
||||
section .bss
|
||||
align 16
|
||||
|
||||
Reference in New Issue
Block a user