Move stack to 0x7c00

This commit is contained in:
mintsuki 2020-09-25 22:42:01 +02:00
parent ef56c2960a
commit c657e86cc8
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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

Binary file not shown.