Rev 1369 | Rev 1391 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1369 | Rev 1380 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | ;; |
55 | ;; |
56 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
56 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 57... | Line 57... | ||
57 | 57 | ||
Line 58... | Line 58... | ||
58 | include 'macros.inc' |
58 | include 'macros.inc' |
Line 59... | Line 59... | ||
59 | 59 | ||
Line 60... | Line 60... | ||
60 | $Revision: 1369 $ |
60 | $Revision: 1380 $ |
Line 699... | Line 699... | ||
699 | call boot_log |
699 | call boot_log |
700 | call reserve_irqs_ports |
700 | call reserve_irqs_ports |
Line 701... | Line 701... | ||
701 | 701 | ||
Line 702... | Line 702... | ||
702 | ; SET PORTS FOR IRQ HANDLERS |
702 | ; SET PORTS FOR IRQ HANDLERS |
703 | 703 | ||
704 | mov esi,boot_setrports |
704 | ;mov esi,boot_setrports |
Line 705... | Line 705... | ||
705 | call boot_log |
705 | ;call boot_log |
Line 706... | Line 706... | ||
706 | ;call setirqreadports |
706 | ;call setirqreadports |
Line 968... | Line 968... | ||
968 | 968 | ||
Line 969... | Line 969... | ||
969 | ; mov [ENABLE_TASKSWITCH],byte 1 ; multitasking enabled |
969 | ; mov [ENABLE_TASKSWITCH],byte 1 ; multitasking enabled |
Line 970... | Line 970... | ||
970 | 970 | ||
971 | ; UNMASK ALL IRQ'S |
971 | ; UNMASK ALL IRQ'S |
972 | 972 | ||
973 | mov esi,boot_allirqs |
973 | ; mov esi,boot_allirqs |
974 | call boot_log |
974 | ; call boot_log |
975 | 975 | ; |
|
976 | cli ;guarantee forbidance of interrupts. |
976 | ; cli ;guarantee forbidance of interrupts. |
977 | mov al,0 ; unmask all irq's |
977 | ; mov al,0 ; unmask all irq's |
978 | out 0xA1,al |
978 | ; out 0xA1,al |
979 | out 0x21,al |
979 | ; out 0x21,al |
980 | 980 | ; |
|
981 | mov ecx,32 |
981 | ; mov ecx,32 |
982 | 982 | ; |
|
983 | ready_for_irqs: |
983 | ; ready_for_irqs: |
984 | 984 | ; |
|
985 | mov al,0x20 ; ready for irqs |
985 | ; mov al,0x20 ; ready for irqs |
986 | out 0x20,al |
986 | ; out 0x20,al |
Line 987... | Line 987... | ||
987 | out 0xa0,al |
987 | ; out 0xa0,al |
Line 988... | Line 988... | ||
988 | 988 | ; |
|
989 | loop ready_for_irqs ; flush the queue |
989 | ; loop ready_for_irqs ; flush the queue |
990 | 990 | ||
991 | stdcall attach_int_handler, dword 1, irq1, dword 0 |
991 | stdcall attach_int_handler, 1, irq1, 0 |