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:
parent
10be655e33
commit
32dff6253f
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue