diff options
| author | Miguel <m.i@gmx.at> | 2018-08-23 03:20:56 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-23 03:20:56 +0200 |
| commit | 4404fa9b3d98646f942e32146722a9d0a68edc13 (patch) | |
| tree | 79e494ec81a462db0217fc763a7ddae1827c02bd /asm/multiboot.s | |
| parent | 98bf7b67543b36b6fe49f2b68c115ebeaf630603 (diff) | |
never ending struggle with forking
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 |
