Subversion Repositories Kolibri OS

Rev

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

Rev 2106 Rev 2130
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2007-2008. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2007-2008. 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 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
IRQ_RESERVE = 24	; 16 or 24
8
IRQ_RESERVED = 24   ; 16 or 24
9
 
9
 
10
iglobal
10
iglobal
Line 60... Line 60...
60
	mov	eax, IOAPIC_VER
60
	mov	eax, IOAPIC_VER
61
	call	IOAPIC_read
61
	call	IOAPIC_read
62
	shr	eax, 16
62
	shr	eax, 16
63
	inc	al
63
	inc	al
64
	movzx	eax, al
64
	movzx	eax, al
65
	cmp	al, IRQ_RESERVE
65
    cmp al, IRQ_RESERVED
66
	jbe	@f
66
	jbe	@f
67
	mov	al, IRQ_RESERVE
67
    mov al, IRQ_RESERVED
-
 
68
@@:
68
@@:	mov	[IRQ_COUNT], eax
69
    mov [IRQ_COUNT], eax
Line 69... Line 70...
69
 
70
 
70
	; Reroute IOAPIC & mask all interrupts
71
	; Reroute IOAPIC & mask all interrupts
71
	xor	ecx, ecx
72
	xor	ecx, ecx
72
	mov	eax, IOAPIC_REDTBL
73
	mov	eax, IOAPIC_REDTBL
Line 104... Line 105...
104
 
105
 
Line 105... Line 106...
105
	; mov	dword[irq_type_to_set], IRQ_TYPE_APIC
106
	; mov	dword[irq_type_to_set], IRQ_TYPE_APIC
Line 106... Line 107...
106
 
107
 
107
;init handlers table
108
;init handlers table
108
 
109
 
109
    mov ecx, IRQ_RESERVE
110
    mov ecx, IRQ_RESERVED
110
    mov edi, irqh_tab
111
    mov edi, irqh_tab
111
@@:
112
@@: