:: commit d7ec93d01d80428ce907069246f4b741b6b12d10

mintsuki <mintsuki@protonmail.com> — 2020-11-05 00:04

parents: d799658be4

bootsect: Move jump to stage2 to second half of bootsector

diff --git a/bootsect/bootsect.asm b/bootsect/bootsect.asm
index 618c8bc9..9bb11a3e 100644
--- a/bootsect/bootsect.asm
+++ b/bootsect/bootsect.asm
@@ -81,12 +81,8 @@ start:
     mov ss, ax
 
     and edx, 0xff
-    push edx
-
-    push stage2.size
-    push (stage2 - decompressor) + 0x70000
 
-    call 0x70000
+    jmp vector
 
 bits 16
 
@@ -102,6 +98,19 @@ times 6 db 0
 %include 'disk.inc'
 %include 'gdt.inc'
 
+bits 32
+vector:
+    push 0
+
+    push edx
+
+    push stage2.size
+    push (stage2 - decompressor) + 0x70000
+
+    call 0x70000
+
+bits 16
+
 times 0x1b0-($-$$) db 0
 stage2_sector: dd 1
 
diff --git a/limine.bin b/limine.bin
index 007482cb..f74b6242 100644
Binary files a/limine.bin and b/limine.bin differ
tab: 248 wrap: offon