Move Multiboot headers to separate file
This commit is contained in:
1 parent
f5fb6241f2
commit
a44d0d7500
3 files changed
+23
-20
No files matched your search
@@ -1,25 +1,6 @@
|
||||
#include <multiboot.h>
|
||||
.intel_syntax noprefix
|
||||
|
||||
.section .multiboot
|
||||
.align 0x1000
|
||||
MultiBootHeader1:
|
||||
.long MBOOT1_MAGIC
|
||||
.long MBOOT1_FLAGS
|
||||
.long MBOOT1_CS
|
||||
|
||||
.align 0x1000
|
||||
MultiBootHeader2:
|
||||
.long MBOOT2_MAGIC
|
||||
.long MBOOT2_ARCH
|
||||
.long MBOOT2_LENGTH
|
||||
.long MBOOT2_CHECKSUM
|
||||
|
||||
.short 0
|
||||
.short 0
|
||||
.long 8
|
||||
MultiBootHeader2End:
|
||||
|
||||
.section .text
|
||||
.global _start
|
||||
.code32
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
#include <multiboot.h>
|
||||
.section .multiboot
|
||||
|
||||
.align 0x4
|
||||
MultibootHeader1:
|
||||
.long MBOOT1_MAGIC
|
||||
.long MBOOT1_FLAGS
|
||||
.long MBOOT1_CS
|
||||
|
||||
.align 0x8
|
||||
MultibootHeader2:
|
||||
.long MBOOT2_MAGIC
|
||||
.long MBOOT2_ARCH
|
||||
.long MBOOT2_LENGTH
|
||||
.long MBOOT2_CHECKSUM
|
||||
|
||||
.short 0
|
||||
.short 0
|
||||
.long 8
|
||||
MultibootHeader2End:
|
||||
Reference in new issue
Block a user