1
0
Fork 0

Only setup default interrupt handlers for first 128 interrupts.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@638
This commit is contained in:
Sjoerd van der Berg 2003-01-18 11:30:05 +00:00
parent d74635f15c
commit 5f7c53654c

View file

@ -171,7 +171,8 @@ void CALLBACK_Init(Section* sec) {
/* Setup all Interrupt to point to the default handler */
call_default=CALLBACK_Allocate();
CALLBACK_Setup(call_default,&default_handler,CB_IRET);
for (i=0;i<256;i++) {
/* Only setup default handler for first half of interrupt table */
for (i=0;i<128;i++) {
real_writed(0,i*4,CALLBACK_RealPointer(call_default));
}
#endif