preprocess fat chain for ramdisk before APIC initialization accesses it

git-svn-id: svn://kolibrios.org@3613 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2013-06-07 08:46:54 +00:00
parent d4aab4d5c2
commit 37b9069351

View File

@ -657,6 +657,10 @@ no_mode_0x12:
; Initialize system timer (IRQ0) ; Initialize system timer (IRQ0)
call PIT_init call PIT_init
; CALCULATE FAT CHAIN FOR RAMDISK
call calculatefatchain
mov esi, boot_initapic mov esi, boot_initapic
call boot_log call boot_log
; Try to Initialize APIC ; Try to Initialize APIC
@ -713,9 +717,6 @@ include 'boot/rdload.inc'
;!!!!!!!!!!!!!!!!!!!!!!! ;!!!!!!!!!!!!!!!!!!!!!!!
end if end if
; mov [dma_hdd],1 ; mov [dma_hdd],1
; CALCULATE FAT CHAIN FOR RAMDISK
call calculatefatchain
if 0 if 0
mov ax, [OS_BASE+0x10000+bx_from_load] mov ax, [OS_BASE+0x10000+bx_from_load]
@ -4782,7 +4783,7 @@ endg
jnz @f jnz @f
mov word [msg_board_pos+2], 234 mov word [msg_board_pos+2], 234
add word [msg_board_pos], 10 add word [msg_board_pos], 10
mov ax, [Screen_Max_Y] mov ax, word [Screen_Max_Y]
cmp word [msg_board_pos], ax cmp word [msg_board_pos], ax
jbe @f jbe @f
mov word [msg_board_pos], 10 mov word [msg_board_pos], 10