From c657e86cc86ed106558382d2684d88891a8aaa10 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Fri, 25 Sep 2020 22:42:01 +0200 Subject: [PATCH] Move stack to 0x7c00 --- README.md | 1 + bootsect/bootsect.asm | 4 ++-- limine.bin | Bin 32768 -> 32768 bytes 3 files changed, 3 insertions(+), 2 deletions(-) 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 ab7bd0c132b14ab592845c9b44ead4c562b47e65..de6fb5bf739c6743532f7504c061c3e20ff26396 100644 GIT binary patch delta 19 acmZo@U}|V!nvl&{GciY%v1a3>ym|mdO9xB< delta 19 acmZo@U}|V!nvl)tFfm7!(P87Hym|mZ#|G2@