From 37b90693513bdc2eb64c8c67642d7862f5d6e334 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Fri, 7 Jun 2013 08:46:54 +0000 Subject: [PATCH] preprocess fat chain for ramdisk before APIC initialization accesses it git-svn-id: svn://kolibrios.org@3613 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index 1aba424c06..d76e3a8c6b 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -657,6 +657,10 @@ no_mode_0x12: ; Initialize system timer (IRQ0) call PIT_init +; CALCULATE FAT CHAIN FOR RAMDISK + + call calculatefatchain + mov esi, boot_initapic call boot_log ; Try to Initialize APIC @@ -713,9 +717,6 @@ include 'boot/rdload.inc' ;!!!!!!!!!!!!!!!!!!!!!!! end if ; mov [dma_hdd],1 -; CALCULATE FAT CHAIN FOR RAMDISK - - call calculatefatchain if 0 mov ax, [OS_BASE+0x10000+bx_from_load] @@ -4782,7 +4783,7 @@ endg jnz @f mov word [msg_board_pos+2], 234 add word [msg_board_pos], 10 - mov ax, [Screen_Max_Y] + mov ax, word [Screen_Max_Y] cmp word [msg_board_pos], ax jbe @f mov word [msg_board_pos], 10