Subversion Repositories Kolibri OS

Rev

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

Rev 1638 Rev 2010
Line 6... Line 6...
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
IRQ_RESERVE = 24	; 16 or 24
8
IRQ_RESERVE = 24	; 16 or 24
9
 
9
 
10
iglobal
10
iglobal
Line 11... Line 11...
11
IRQ_COUNT	dd	16
11
IRQ_COUNT	dd	24
12
endg
12
endg
13
 
13
 
Line 43... Line 43...
43
IOAPIC_REDTBL	equ	0x10
43
IOAPIC_REDTBL	equ	0x10
Line 44... Line 44...
44
 
44
 
45
APIC_init:
45
APIC_init:
46
	mov	dword[APIC], 0
46
	mov	dword[APIC], 0
47
	; jmp	.no_apic		; NO APIC
47
	; jmp	.no_apic		; NO APIC
48
	bt	[cpu_caps], CAPS_APIC
48
;	bt	[cpu_caps], CAPS_APIC
49
	jnc	.no_apic
49
;	jnc	.no_apic
50
	; Check for MP table
50
	; Check for MP table
Line 51... Line 51...
51
	;.....
51
	;.....
Line 94... Line 94...
94
	jb	@b
94
	jb	@b
Line 95... Line 95...
95
 
95
 
Line 96... Line 96...
96
	call	LAPIC_init
96
	call	LAPIC_init
-
 
97
 
-
 
98
	mov	dword[APIC], 0xffffffff
-
 
99
 
-
 
100
    mov al, 0x70
-
 
101
    out 0x22, al
-
 
102
    mov al, 1
97
	
103
    out 0x23, al
98
	mov	dword[APIC], 0xffffffff
104
 
99
	; mov	dword[irq_type_to_set], IRQ_TYPE_APIC
105
	; mov	dword[irq_type_to_set], IRQ_TYPE_APIC
Line 100... Line 106...
100
.no_apic:
106
.no_apic: