Kernel: fix stack selector

git-svn-id: svn://kolibrios.org@5790 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2015-09-04 06:40:05 +00:00
parent ce24ad0376
commit 86fb4bfe83

View File

@ -176,7 +176,7 @@ if defined extended_primary_loader
mov [bootfs], bx
; set up stack
mov ax, TMP_STACK_TOP shr 16
mov ax, (TMP_STACK_TOP and 0xF0000) shr 4
mov ss, ax
mov sp, TMP_STACK_TOP and 0xFFFF
@ -293,7 +293,7 @@ else
no_hd_load:
; set up stack
mov ax, TMP_STACK_TOP shr 16
mov ax, (TMP_STACK_TOP and 0xF0000) shr 4
mov ss, ax
mov sp, TMP_STACK_TOP and 0xFFFF
; set up segment registers