aboutsummaryrefslogtreecommitdiff
path: root/source/arch/x86_64/src/boot/multiboot.s
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2023-10-11 14:43:50 +0200
committerFelix Morgner <felix.morgner@ost.ch>2023-10-11 14:43:50 +0200
commit74eaee0fcc7390d4290b41a2a92ee34346e2f7c2 (patch)
tree3a38f8dbe0c6b757167bc264cb68e3da145bd069 /source/arch/x86_64/src/boot/multiboot.s
parentf47bee5f51a73593d3594940663f56f2427f480b (diff)
downloadteachos-74eaee0fcc7390d4290b41a2a92ee34346e2f7c2.tar.xz
teachos-74eaee0fcc7390d4290b41a2a92ee34346e2f7c2.zip
teachos: restructure file layout
Diffstat (limited to 'source/arch/x86_64/src/boot/multiboot.s')
-rw-r--r--source/arch/x86_64/src/boot/multiboot.s26
1 files changed, 26 insertions, 0 deletions
diff --git a/source/arch/x86_64/src/boot/multiboot.s b/source/arch/x86_64/src/boot/multiboot.s
new file mode 100644
index 0000000..7ccca56
--- /dev/null
+++ b/source/arch/x86_64/src/boot/multiboot.s
@@ -0,0 +1,26 @@
+.section .boot_mbh, "a"
+.align 8
+
+multiboot_header_start:
+.Lmagic:
+ .long 0xe85250d6
+.Larch:
+ .long 0
+.Llength:
+ .long multiboot_header_end - multiboot_header_start
+.Lchecksum:
+ .long 0x100000000 - (0xe85250d6 + 0 + (multiboot_header_end - multiboot_header_start))
+.align 8
+.Lflags_start:
+ .word 4
+ .word 1
+ .long .Lflags_end - .Lflags_start
+ .long 3
+.Lflags_end:
+.align 8
+.Lend_start:
+ .word 0
+ .word 0
+ .long .Lend_end - .Lend_start
+.Lend_end:
+multiboot_header_end: