1
0
Fork 0

Always set first 0x40 interrupts to default handler at startup.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@846
This commit is contained in:
Sjoerd van der Berg 2003-03-30 21:12:15 +00:00
parent 10be655e33
commit 32dff6253f

View file

@ -167,15 +167,13 @@ void CALLBACK_Init(Section* sec) {
real_writeb((Bit16u)CB_SEG,(call_idle<<4)+13,0x38);
real_writew((Bit16u)CB_SEG,(call_idle<<4)+14,call_idle);
#if C_DEBUG
/* Setup all Interrupt to point to the default handler */
call_default=CALLBACK_Allocate();
CALLBACK_Setup(call_default,&default_handler,CB_IRET);
/* Only setup default handler for first half of interrupt table */
for (i=0;i<128;i++) {
for (i=0;i<0x40;i++) {
real_writed(0,i*4,CALLBACK_RealPointer(call_default));
}
#endif
}