Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1379 → Rev 1380

/kernel/trunk/kernel.asm
701,8 → 701,8
 
; SET PORTS FOR IRQ HANDLERS
 
mov esi,boot_setrports
call boot_log
;mov esi,boot_setrports
;call boot_log
;call setirqreadports
 
; SET UP OS TASK
970,26 → 970,26
 
; UNMASK ALL IRQ'S
 
mov esi,boot_allirqs
call boot_log
; mov esi,boot_allirqs
; call boot_log
;
; cli ;guarantee forbidance of interrupts.
; mov al,0 ; unmask all irq's
; out 0xA1,al
; out 0x21,al
;
; mov ecx,32
;
; ready_for_irqs:
;
; mov al,0x20 ; ready for irqs
; out 0x20,al
; out 0xa0,al
;
; loop ready_for_irqs ; flush the queue
 
cli ;guarantee forbidance of interrupts.
mov al,0 ; unmask all irq's
out 0xA1,al
out 0x21,al
stdcall attach_int_handler, 1, irq1, 0
 
mov ecx,32
 
ready_for_irqs:
 
mov al,0x20 ; ready for irqs
out 0x20,al
out 0xa0,al
 
loop ready_for_irqs ; flush the queue
 
stdcall attach_int_handler, dword 1, irq1, dword 0
 
; mov [dma_hdd],1
cmp [IDEContrRegsBaseAddr], 0
setnz [dma_hdd]