Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2229 → Rev 2219

/kernel/branches/Kolibri-acpi/kernel.asm
226,7 → 226,7
mov fs,ax
mov gs,ax
mov ss,ax
mov esp,0x006CC00 ; Set stack
mov esp,0x5ec00 ; Set stack
 
; CLEAR 0x280000 - HEAP_BASE
 
236,11 → 236,13
cld
rep stosd
 
mov edi,0x40000
mov ecx,(0x90000-0x40000)/4
rep stosd
 
; CLEAR KERNEL UNDEFINED GLOBALS
mov edi, endofcode-OS_BASE
mov ecx, 0x90000
sub ecx, edi
shr ecx, 2
mov ecx, (uglobals_size/4)+4
rep stosd
 
; SAVE & CLEAR 0-0xffff
602,7 → 604,6
 
; REDIRECT ALL IRQ'S TO INT'S 0x20-0x2f
 
call init_irqs
call PIC_init
 
; Initialize system V86 machine
614,6 → 615,8
; Try to Initialize APIC
call APIC_init
 
call pci_irq_fixup
 
; Enable timer IRQ (IRQ0) and hard drives IRQs (IRQ14, IRQ15)
; they are used: when partitions are scanned, hd_read relies on timer
call unmask_timer
677,9 → 680,11
; Display APIC status
mov esi, boot_APIC_found
cmp [irq_mode], IRQ_APIC
je @f
jne @f
 
mov esi, boot_APIC_nfound
@@:
call boot_log
 
; PRINT AMOUNT OF MEMORY
mov esi, boot_memdetect