arch: x86_64: move the disable multiboot2 marco around to retain labels
This commit is contained in:
parent
235d905001
commit
9ab6b92ad7
@ -89,11 +89,11 @@
|
|||||||
.set HEADER_LENGTH, header_end - header_start
|
.set HEADER_LENGTH, header_end - header_start
|
||||||
.set CHECKSUM, -(MULTIBOOT2_HEADER_MAGIC + MULTIBOOT_ARCHITECTURE_I386 + HEADER_LENGTH)
|
.set CHECKSUM, -(MULTIBOOT2_HEADER_MAGIC + MULTIBOOT_ARCHITECTURE_I386 + HEADER_LENGTH)
|
||||||
|
|
||||||
#ifndef CONFIG_ARCH_EXCLUDE_MULTIBOOT
|
|
||||||
.section ".multiboot", "a"
|
.section ".multiboot", "a"
|
||||||
.align 8
|
.align 8
|
||||||
|
|
||||||
header_start:
|
header_start:
|
||||||
|
#ifndef CONFIG_ARCH_EXCLUDE_MULTIBOOT
|
||||||
.long MULTIBOOT2_HEADER_MAGIC
|
.long MULTIBOOT2_HEADER_MAGIC
|
||||||
.long MULTIBOOT_ARCHITECTURE_I386
|
.long MULTIBOOT_ARCHITECTURE_I386
|
||||||
.long HEADER_LENGTH
|
.long HEADER_LENGTH
|
||||||
@ -104,9 +104,9 @@ header_start:
|
|||||||
.short MULTIBOOT_HEADER_TAG_END
|
.short MULTIBOOT_HEADER_TAG_END
|
||||||
.short 0 // flags, none set
|
.short 0 // flags, none set
|
||||||
.long 8 // size, including itself (short + short + long)
|
.long 8 // size, including itself (short + short + long)
|
||||||
|
#endif
|
||||||
header_end:
|
header_end:
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* .text
|
* .text
|
||||||
|
Loading…
Reference in New Issue
Block a user