Remapping IRQs to standart scheme in real mode during shutdown added.

git-svn-id: svn://kolibrios.org@27 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Andrey Halyavin (halyavin) 2005-11-25 16:46:29 +00:00
parent e9f77ab2f3
commit 84490631f7

View File

@ -195,11 +195,6 @@ pr_mode_exit:
mov gs,ax mov gs,ax
mov ss,ax mov ss,ax
; mov bl,[shutdown_parameter] ; mov bl,[shutdown_parameter]
mov al,2
out 0x21,al
mov al,0
out 0xA1,al
; mov [es:shutdown_parameter-0x10000],bl ; mov [es:shutdown_parameter-0x10000],bl
jmp real_mode-0x10000 jmp real_mode-0x10000
@ -209,11 +204,43 @@ old_ints_h:
dd 0 dd 0
dw 0 dw 0
rdelay:
ret
real_mode: real_mode:
lidt [cs:old_ints_h-0x10000] lidt [cs:old_ints_h-0x10000]
mov sp,0xfff0 mov sp,0xfff0
;remap IRQs
mov al,0x11
out 0x20,al
call rdelay
out 0xA0,al
call rdelay
mov al,0x08
out 0x21,al
call rdelay
mov al,0x70
out 0xA1,al
call rdelay
mov al,0x04
out 0x21,al
call rdelay
mov al,0x02
out 0xA1,al
call rdelay
mov al,0x01
out 0x21,al
call rdelay
out 0xA1,al
call rdelay
mov al,2
out 0x21,al
mov al,0
out 0xA1,al
sti sti
jmp temp_3456 jmp temp_3456