Subversion Repositories Kolibri OS

Rev

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

Rev 2114 Rev 2118
Line 66... Line 66...
66
;;
66
;;
67
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
67
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 68... Line 68...
68
 
68
 
Line 69... Line 69...
69
include 'macros.inc'
69
include 'macros.inc'
Line 70... Line 70...
70
 
70
 
Line 71... Line 71...
71
$Revision: 2114 $
71
$Revision: 2118 $
Line 4117... Line 4117...
4117
     mov   edx,0xffffffff
4117
     mov   edx,0xffffffff
4118
     mov   eax,0xffffffff
4118
     mov   eax,0xffffffff
4119
     ret
4119
     ret
4120
end if
4120
end if
Line 4121... Line -...
4121
 
-
 
4122
rerouteirqs:
-
 
4123
 
-
 
4124
        cli
-
 
4125
 
-
 
4126
        mov     al,0x11         ;  icw4, edge triggered
-
 
4127
        out     0x20,al
-
 
4128
        call    pic_delay
-
 
4129
        out     0xA0,al
-
 
4130
        call    pic_delay
-
 
4131
 
-
 
4132
        mov     al,0x20         ;  generate 0x20 +
-
 
4133
        out     0x21,al
-
 
4134
        call    pic_delay
-
 
4135
        mov     al,0x28         ;  generate 0x28 +
-
 
4136
        out     0xA1,al
-
 
4137
        call    pic_delay
-
 
4138
 
-
 
4139
        mov     al,0x04         ;  slave at irq2
-
 
4140
        out     0x21,al
-
 
4141
        call    pic_delay
-
 
4142
        mov     al,0x02         ;  at irq9
-
 
4143
        out     0xA1,al
-
 
4144
        call    pic_delay
-
 
4145
 
-
 
4146
        mov     al,0x01         ;  8086 mode
-
 
4147
        out     0x21,al
-
 
4148
        call    pic_delay
-
 
4149
        out     0xA1,al
-
 
4150
        call    pic_delay
-
 
4151
 
-
 
4152
        mov     al,255          ; mask all irq's
-
 
4153
        out     0xA1,al
-
 
4154
        call    pic_delay
-
 
4155
        out     0x21,al
-
 
4156
        call    pic_delay
-
 
4157
 
-
 
4158
        mov     ecx,0x1000
-
 
4159
        cld
-
 
4160
picl1:  call    pic_delay
-
 
4161
        loop    picl1
-
 
4162
 
-
 
4163
        mov     al,255          ; mask all irq's
-
 
4164
        out     0xA1,al
-
 
4165
        call    pic_delay
-
 
4166
        out     0x21,al
-
 
4167
        call    pic_delay
-
 
4168
 
-
 
4169
        cli
-
 
4170
 
-
 
4171
        ret
-
 
4172
 
-
 
4173
 
-
 
4174
pic_delay:
-
 
4175
 
-
 
4176
        jmp     pdl1
-
 
Line 4177... Line 4121...
4177
pdl1:   ret
4121
 
Line 4178... Line 4122...
4178
 
4122