Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2009 → Rev 2010

/kernel/branches/Kolibri-acpi/core/dll.inc
17,6 → 17,9
align 4
proc attach_int_handler stdcall, irq:dword, handler:dword, access_rights:dword
 
pushfd
cli
 
push ebx
 
mov ebx, [irq] ;irq num
46,10 → 49,12
stdcall enable_irq, [irq]
pop ebx
mov eax, 1
popfd
ret
.err:
pop ebx
xor eax, eax
popfd
ret
endp
 
100,7 → 105,7
jmp .main
}
 
irq_serv_h 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12
irq_serv_h 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15
 
; I don`t known how to use IRQ_RESERVE
if IRQ_RESERVE > 16
118,6 → 123,26
cmp [v86_irqhooks+eax*8], 0
jnz v86_irq
 
cmp al, 6
jnz @f
push eax
call [fdc_irq_func]
pop eax
@@:
 
cmp al, 14
jnz @f
push eax
call [irq14_func]
pop eax
@@:
cmp al, 15
jnz @f
push eax
call [irq15_func]
pop eax
@@:
 
mov ebx, [irq_tab+eax*4]
test ebx, ebx
jz .exit