From 32dff6253f51f423765fd3bb55acb4f950d02909 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 30 Mar 2003 21:12:15 +0000 Subject: [PATCH] Always set first 0x40 interrupts to default handler at startup. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@846 --- src/cpu/callback.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cpu/callback.cpp b/src/cpu/callback.cpp index f4bc04de..ce79268f 100644 --- a/src/cpu/callback.cpp +++ b/src/cpu/callback.cpp @@ -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 }