mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-19 09:35:15 -04:00
Fix the stack to avoid being erase by the kernel loading
This commit is contained in:
parent
fd35adfe9b
commit
92b8b4c395
@ -14,10 +14,9 @@ jmp rm_start
|
|||||||
; Start in real mode
|
; Start in real mode
|
||||||
rm_start:
|
rm_start:
|
||||||
; Set stack space (4K) and stack segment
|
; Set stack space (4K) and stack segment
|
||||||
mov ax, 0x9C0
|
mov ax, 0x70
|
||||||
add ax, 288
|
|
||||||
mov ss, ax
|
mov ss, ax
|
||||||
mov sp, 4096
|
mov sp, 2048
|
||||||
|
|
||||||
; Set data segment
|
; Set data segment
|
||||||
mov ax, 0x7C0
|
mov ax, 0x7C0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user