summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/multiboot.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64/multiboot.s')
-rw-r--r--src/kernel/arch/amd64/multiboot.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/kernel/arch/amd64/multiboot.s b/src/kernel/arch/amd64/multiboot.s
new file mode 100644
index 0000000..dc19b36
--- /dev/null
+++ b/src/kernel/arch/amd64/multiboot.s
@@ -0,0 +1,12 @@
+.set MAGIC, 0x1BADB002
+
+/* 1<<0 - align modules on page boundaries. */
+.set FLAGS, 1<<0
+.set CHECKSUM, -(MAGIC + FLAGS)
+
+.section .multiboot
+.align 4
+multiboot_header:
+ .long MAGIC
+ .long FLAGS
+ .long CHECKSUM