1
0
Fork 0

Move irq 2/9 to a different location.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2635
This commit is contained in:
Peter Veenstra 2006-05-23 10:30:02 +00:00
parent 1f016f7801
commit 796af47e74
2 changed files with 19 additions and 28 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: pic.cpp,v 1.34 2006-03-12 21:14:45 qbix79 Exp $ */
/* $Id: pic.cpp,v 1.35 2006-05-23 10:30:02 qbix79 Exp $ */
#include <list>
@ -452,20 +452,6 @@ bool PIC_RunQueue(void) {
return true;
}
//Irq 9-2 calling code
static Bitu INT71_Handler() {
IO_Write(0xa0,0x61);
CALLBACK_RunRealInt(0xa);
return CBRET_NONE;
}
static Bitu INT0A_Handler() {
IO_Write(0x20,0x62);
return CBRET_NONE;
}
/* The TIMER Part */
struct TickerBlock {
TIMER_TickHandler handler;
@ -522,7 +508,6 @@ class PIC:public Module_base{
private:
IO_ReadHandleObject ReadHandler[4];
IO_WriteHandleObject WriteHandler[4];
CALLBACK_HandlerObject callback[2];
public:
PIC(Section* configuration):Module_base(configuration){
/* Setup pic0 and pic1 with initial values like DOS has normally */
@ -575,12 +560,6 @@ public:
pic.entries[PIC_QUEUESIZE-1].next=0;
pic.free_entry=&pic.entries[0];
pic.next_entry=0;
/* Irq 9 and 2 thingie
* Should be done by bios but then it overwrites the mpu handler */
callback[0].Install(&INT71_Handler,CB_IRET,"irq 9 bios");
callback[0].Set_RealVec(0x71);
callback[1].Install(&INT0A_Handler,CB_IRET,"irq 2 bios");
callback[1].Set_RealVec(0xA);
}
~PIC(){
}