Subversion Repositories Kolibri OS

Rev

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

Rev 2 Rev 27
Line 193... Line 193...
193
    mov es,ax
193
    mov es,ax
194
    mov fs,ax
194
    mov fs,ax
195
    mov gs,ax
195
    mov gs,ax
196
    mov ss,ax
196
    mov ss,ax
197
;    mov bl,[shutdown_parameter]
197
;    mov bl,[shutdown_parameter]
198
    mov al,2
-
 
199
    out 0x21,al
-
 
200
    mov al,0
-
 
201
    out 0xA1,al
-
 
202
 
-
 
203
;    mov [es:shutdown_parameter-0x10000],bl
198
;    mov [es:shutdown_parameter-0x10000],bl
Line 204... Line 199...
204
 
199
 
Line 205... Line 200...
205
    jmp real_mode-0x10000       
200
    jmp real_mode-0x10000       
206
 
201
 
207
old_ints_h:
202
old_ints_h:
208
        dw      4*0x20
203
        dw      4*0x20
Line -... Line 204...
-
 
204
        dd      0
-
 
205
        dw      0
209
        dd      0
206
 
Line 210... Line 207...
210
        dw      0
207
rdelay:
211
 
208
    ret
-
 
209
real_mode:
-
 
210
 
-
 
211
    lidt [cs:old_ints_h-0x10000]
-
 
212
    mov  sp,0xfff0
-
 
213
;remap IRQs
-
 
214
    mov  al,0x11
-
 
215
    out  0x20,al
-
 
216
    call rdelay
-
 
217
    out  0xA0,al
-
 
218
    call rdelay
-
 
219
    
-
 
220
    mov  al,0x08
-
 
221
    out  0x21,al
-
 
222
    call rdelay
-
 
223
    mov  al,0x70
-
 
224
    out  0xA1,al
-
 
225
    call rdelay
-
 
226
    
-
 
227
    mov  al,0x04
-
 
228
    out  0x21,al
-
 
229
    call rdelay
-
 
230
    mov  al,0x02
-
 
231
    out  0xA1,al
-
 
232
    call rdelay
-
 
233
    
-
 
234
    mov  al,0x01
Line -... Line 235...
-
 
235
    out  0x21,al
-
 
236
    call rdelay
-
 
237
    out  0xA1,al
-
 
238
    call rdelay
212
real_mode:
239
    
Line 213... Line 240...
213
 
240
    mov  al,2
Line 214... Line 241...
214
    lidt [cs:old_ints_h-0x10000]
241
    out  0x21,al