Kernel: set proper stack pointer value for kernel bootloader.

git-svn-id: svn://kolibrios.org@5786 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2015-09-03 14:37:07 +00:00
parent eaac3b79f5
commit 66c8eb59f3

View File

@ -176,9 +176,9 @@ if defined extended_primary_loader
mov [bootfs], bx
; set up stack
mov ax, 3000h
mov ax, TMP_STACK_TOP shr 16
mov ss, ax
mov sp, 0EC00h
mov sp, TMP_STACK_TOP and 0xFFFF
; try to load configuration file
mov ax, 1
@ -293,9 +293,9 @@ else
no_hd_load:
; set up stack
mov ax, 3000h
mov ax, TMP_STACK_TOP shr 16
mov ss, ax
mov sp, 0EC00h
mov sp, TMP_STACK_TOP and 0xFFFF
; set up segment registers
push cs
pop ds