Fix the stack to avoid being erase by the kernel loading

This commit is contained in:
Baptiste Wicht 2014-01-02 14:02:29 +01:00
parent fd35adfe9b
commit 92b8b4c395

View File

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