Rev 3778 | Rev 3791 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3778 | Rev 3785 | ||
---|---|---|---|
Line 69... | Line 69... | ||
69 | format binary as "mnt" |
69 | format binary as "mnt" |
Line 70... | Line 70... | ||
70 | 70 | ||
71 | include 'macros.inc' |
71 | include 'macros.inc' |
Line 72... | Line 72... | ||
72 | include 'struct.inc' |
72 | include 'struct.inc' |
Line 73... | Line 73... | ||
73 | 73 | ||
74 | $Revision: 3778 $ |
74 | $Revision: 3785 $ |
Line 753... | Line 753... | ||
753 | ; Try to Initialize APIC |
753 | ; Try to Initialize APIC |
754 | call APIC_init |
754 | call APIC_init |
Line 755... | Line 755... | ||
755 | 755 | ||
756 | mov esi, boot_enableirq |
756 | mov esi, boot_enableirq |
757 | call boot_log |
757 | call boot_log |
758 | ; Enable timer IRQ (IRQ0) and hard drives IRQs (IRQ14, IRQ15) |
758 | ; Enable timer IRQ (IRQ0) and co-processor IRQ (IRQ13) |
759 | ; they are used: when partitions are scanned, hd_read relies on timer |
759 | ; they are used: when partitions are scanned, hd_read relies on timer |
760 | call unmask_timer |
760 | call unmask_timer |
761 | stdcall enable_irq, 2 ; @#$%! PIC |
761 | stdcall enable_irq, 2 ; @#$%! PIC |
Line -... | Line 762... | ||
- | 762 | stdcall enable_irq, 13 ; co-processor |
|
- | 763 | ||
- | 764 | cmp [IDEContrProgrammingInterface], 0 |
|
762 | stdcall enable_irq, 13 ; co-processor |
765 | je @f |
763 | 766 | ||
764 | mov esi, boot_disabling_ide |
767 | mov esi, boot_disabling_ide |
765 | call boot_log |
768 | call boot_log |
766 | ;-------------------------------------- |
769 | ;-------------------------------------- |
Line 774... | Line 777... | ||
774 | add dx, 2 ;0x3F6 |
777 | add dx, 2 ;0x3F6 |
775 | out dx, al |
778 | out dx, al |
776 | mov dx, [IDE_BAR3_val] ;0x374 |
779 | mov dx, [IDE_BAR3_val] ;0x374 |
777 | add dx, 2 ;0x376 |
780 | add dx, 2 ;0x376 |
778 | out dx, al |
781 | out dx, al |
- | 782 | @@: |
|
779 | ;----------------------------------------------------------------------------- |
783 | ;----------------------------------------------------------------------------- |
780 | ;!!!!!!!!!!!!!!!!!!!!!!!!!! |
784 | ;!!!!!!!!!!!!!!!!!!!!!!!!!! |
781 | ; mov esi, boot_detectdisks |
785 | ; mov esi, boot_detectdisks |
782 | ; call boot_log |
786 | ; call boot_log |
783 | ;include 'detect/disks.inc' |
787 | ;include 'detect/disks.inc' |
Line 1109... | Line 1113... | ||
1109 | end if |
1113 | end if |
Line 1110... | Line 1114... | ||
1110 | 1114 | ||
1111 | cmp [IDEContrRegsBaseAddr], 0 |
1115 | cmp [IDEContrRegsBaseAddr], 0 |
Line -... | Line 1116... | ||
- | 1116 | setnz [dma_hdd] |
|
- | 1117 | ||
1112 | setnz [dma_hdd] |
1118 | cmp [IDEContrProgrammingInterface], 0 |
1113 | 1119 | je set_interrupts_for_IDE_controllers.continue |
|
1114 | ;----------------------------------------------------------------------------- |
1120 | ;----------------------------------------------------------------------------- |
1115 | ; set interrupts for IDE Controller |
1121 | ; set interrupts for IDE Controller |
1116 | ;----------------------------------------------------------------------------- |
1122 | ;----------------------------------------------------------------------------- |