Subversion Repositories Kolibri OS

Rev

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

Rev 3825 Rev 3870
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: 3825 $
74
$Revision: 3870 $
Line 1110... Line 1110...
1110
        in      al, 0x60        ; wait for ESC key press
1110
        in      al, 0x60        ; wait for ESC key press
1111
        cmp     al, 129
1111
        cmp     al, 129
1112
        jne     .bll1
1112
        jne     .bll1
1113
end if
1113
end if
Line -... Line 1114...
-
 
1114
 
-
 
1115
        push    eax edx
-
 
1116
        mov     dx, [IDEContrRegsBaseAddr]
-
 
1117
        xor     eax, eax
-
 
1118
        add     dx, 2
-
 
1119
        in      al, dx
-
 
1120
        DEBUGF  1, "K : Primary Bus Master IDE Status Register %x\n", eax
-
 
1121
 
-
 
1122
        add     dx, 8
-
 
1123
        in      al, dx
-
 
1124
        DEBUGF  1, "K : Secondary Bus Master IDE Status Register %x\n", eax
-
 
1125
        pop     edx eax
1114
 
1126
 
1115
        cmp     [IDEContrRegsBaseAddr], 0
1127
        cmp     [IDEContrRegsBaseAddr], 0
Line 1116... Line 1128...
1116
        setnz   [dma_hdd]
1128
        setnz   [dma_hdd]
1117
 
1129
 
Line 1140... Line 1152...
1140
;--------------------------------------
1152
;--------------------------------------
1141
.pata_ide:
1153
.pata_ide:
1142
        cmp     [IDEContrRegsBaseAddr], 0
1154
        cmp     [IDEContrRegsBaseAddr], 0
1143
        je      .end_set_interrupts
1155
        je      .end_set_interrupts
Line 1144... Line 1156...
1144
 
1156
 
1145
        stdcall attach_int_handler, 14, IDE_common_irq_handler, 0
1157
        stdcall attach_int_handler, 14, IDE_irq_14_handler, 0
1146
        DEBUGF  1, "K : Set IDE IRQ14 return code %x\n", eax
1158
        DEBUGF  1, "K : Set IDE IRQ14 return code %x\n", eax
1147
        stdcall attach_int_handler, 15, IDE_common_irq_handler, 0
1159
        stdcall attach_int_handler, 15, IDE_irq_15_handler, 0
1148
        DEBUGF  1, "K : Set IDE IRQ15 return code %x\n", eax
1160
        DEBUGF  1, "K : Set IDE IRQ15 return code %x\n", eax
1149
        jmp     .enable_IDE_interrupt
1161
        jmp     .enable_IDE_interrupt
1150
;--------------------------------------
1162
;--------------------------------------
1151
.sata_ide:
1163
.sata_ide: