diff options
| author | felix.morgner@ost.ch <felix.morgner@gmail.com> | 2023-10-07 10:45:45 +0200 |
|---|---|---|
| committer | felix.morgner@ost.ch <felix.morgner@gmail.com> | 2023-10-07 10:45:45 +0200 |
| commit | 68db123a2f37a66aea218fa48a5bab8ea6b12951 (patch) | |
| tree | 911c21ba6ab3694ab6339186001a14c04fe889ea /source/boot/arch/x86_64/src/multiboot.s | |
| parent | fa1f8636d2e2368c9cb446284946570565563f4f (diff) | |
| download | teachos-68db123a2f37a66aea218fa48a5bab8ea6b12951.tar.xz teachos-68db123a2f37a66aea218fa48a5bab8ea6b12951.zip | |
x86_64: implement first bootable kernel
Diffstat (limited to 'source/boot/arch/x86_64/src/multiboot.s')
| -rw-r--r-- | source/boot/arch/x86_64/src/multiboot.s | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/boot/arch/x86_64/src/multiboot.s b/source/boot/arch/x86_64/src/multiboot.s new file mode 100644 index 0000000..207a639 --- /dev/null +++ b/source/boot/arch/x86_64/src/multiboot.s @@ -0,0 +1,17 @@ +.section .boot_mbh, "a" +.align 64 + +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)) +.Lend: + .int 0 + .int 0 + .long 8 +multiboot_header_end: |
