From 84490631f7509f0e5079b7c8b1af328dc88db67d Mon Sep 17 00:00:00 2001 From: "Andrey Halyavin (halyavin)" Date: Fri, 25 Nov 2005 16:46:29 +0000 Subject: [PATCH] Remapping IRQs to standart scheme in real mode during shutdown added. git-svn-id: svn://kolibrios.org@27 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/boot/shutdown.inc | 39 ++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/kernel/trunk/boot/shutdown.inc b/kernel/trunk/boot/shutdown.inc index 5bfcc9f7e0..9bd9047895 100644 --- a/kernel/trunk/boot/shutdown.inc +++ b/kernel/trunk/boot/shutdown.inc @@ -195,11 +195,6 @@ pr_mode_exit: mov gs,ax mov ss,ax ; mov bl,[shutdown_parameter] - mov al,2 - out 0x21,al - mov al,0 - out 0xA1,al - ; mov [es:shutdown_parameter-0x10000],bl jmp real_mode-0x10000 @@ -209,11 +204,43 @@ old_ints_h: dd 0 dw 0 +rdelay: + ret real_mode: lidt [cs:old_ints_h-0x10000] 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 jmp temp_3456