:: commit c657e86cc86ed106558382d2684d88891a8aaa10

mintsuki <mintsuki@protonmail.com> — 2020-09-25 20:42

parents: ef56c2960a

Move stack to 0x7c00

diff --git a/README.md b/README.md
index bedf14e2..ae75542e 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@ such as Long Mode, 5-level paging, and SMP (multicore), to name a few.
 ### Supported boot protocols
 * Linux
 * stivale and stivale2 (Limine's native boot protocols, see STIVALE{,2}.md for details)
+* Chainloading
 
 ### Supported filesystems
 * ext2/3/4
diff --git a/bootsect/bootsect.asm b/bootsect/bootsect.asm
index 57fcda78..fa167af7 100644
--- a/bootsect/bootsect.asm
+++ b/bootsect/bootsect.asm
@@ -20,7 +20,7 @@ start:
     mov ds, ax
     mov es, ax
     mov ss, ax
-    mov sp, 0x4000
+    mov sp, 0x7c00
     sti
 
     ; Some BIOSes don't pass the correct boot drive number,
@@ -57,7 +57,7 @@ start:
     ; If int 13h extensions are supported, then we are definitely running on
     ; a 386+. We have no idea whether the upper 16 bits of esp are cleared, so
     ; make sure that is the case now.
-    mov esp, 0x4000
+    mov esp, 0x7c00
 
     mov eax, dword [stage15_sector]
     mov bx, 0x7e00
diff --git a/limine.bin b/limine.bin
index ab7bd0c1..de6fb5bf 100644
Binary files a/limine.bin and b/limine.bin differ
tab: 248 wrap: offon