diff options
Diffstat (limited to 'asm/multiboot.s')
| -rw-r--r-- | asm/multiboot.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/asm/multiboot.s b/asm/multiboot.s index a35423c..c26b647 100644 --- a/asm/multiboot.s +++ b/asm/multiboot.s @@ -13,6 +13,11 @@ .set MAGIC, 0x1BADB002 # 'magic number' lets bootloader find the header .set CHECKSUM, -(MAGIC + FLAGS) # checksum of above, to prove we are multiboot + +.section .smp +.code16 +jmp . + # Declare a header as in the Multiboot Standard. We put this into a special # section so we can force the header to be in the start of the final program. # You don't need to understand all these details as it is just magic values that @@ -20,6 +25,7 @@ # magic sequence and recognize us as a multiboot kernel. .section .multiboot +.code32 .align 4 .long MAGIC .long FLAGS |
