Subversion Repositories Kolibri OS

Rev

Rev 2166 | Rev 2465 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2166 Rev 2229
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line -... Line 7...
-
 
7
 
Line 7... Line 8...
7
 
8
IRQ_RESERVED   equ 24
Line 8... Line 9...
8
 
9
 
Line 20... Line 21...
20
irq_failed          rd IRQ_RESERVED
21
irq_failed          rd IRQ_RESERVED
Line 21... Line 22...
21
 
22
 
Line 22... Line 23...
22
endg
23
endg
-
 
24
 
-
 
25
align 4
-
 
26
init_irqs:
-
 
27
 
-
 
28
    mov ecx, IRQ_RESERVED
-
 
29
    mov edi, irqh_tab
-
 
30
@@:
-
 
31
    mov eax, edi
-
 
32
    stosd
-
 
33
    stosd
-
 
34
    loop @B
-
 
35
 
-
 
36
    mov ecx, IRQ_POOL_SIZE-1
-
 
37
    mov eax, irqh_pool+IRQH.sizeof
-
 
38
    mov [next_irqh], irqh_pool
-
 
39
@@:
-
 
40
    mov [eax-IRQH.sizeof], eax
-
 
41
    add eax, IRQH.sizeof
-
 
42
    loop @B
-
 
43
 
-
 
44
    mov [eax-IRQH.sizeof], dword 0
-
 
45
    ret
-
 
46
 
23
 
47
 
24
align 4
48
align 4
25
proc attach_int_handler stdcall, irq:dword, handler:dword, user_data:dword
49
proc attach_int_handler stdcall, irq:dword, handler:dword, user_data:dword
26
         locals
50
         locals