From 2c0338404b0633274a4eee24bec3a154c2ffac62 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 29 Aug 2004 11:22:37 +0000 Subject: [PATCH] Added some callback information for the lower numbers Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1933 --- src/cpu/callback.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cpu/callback.cpp b/src/cpu/callback.cpp index 55687744..87aaa4ac 100644 --- a/src/cpu/callback.cpp +++ b/src/cpu/callback.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: callback.cpp,v 1.21 2004-08-04 09:12:51 qbix79 Exp $ */ +/* $Id: callback.cpp,v 1.22 2004-08-29 11:22:37 qbix79 Exp $ */ #include #include @@ -203,12 +203,14 @@ void CALLBACK_Init(Section* sec) { /* Setup the Stop Handler */ call_stop=CALLBACK_Allocate(); CallBack_Handlers[call_stop]=stop_handler; + CALLBACK_SetDescription(call_stop,"stop"); phys_writeb(CB_BASE+(call_stop<<4)+0,0xFE); phys_writeb(CB_BASE+(call_stop<<4)+1,0x38); phys_writew(CB_BASE+(call_stop<<4)+2,call_stop); /* Setup the idle handler */ call_idle=CALLBACK_Allocate(); CallBack_Handlers[call_idle]=stop_handler; + CALLBACK_SetDescription(call_idle,"idle"); for (i=0;i<=11;i++) phys_writeb(CB_BASE+(call_idle<<4)+i,0x90); phys_writeb(CB_BASE+(call_idle<<4)+12,0xFE); phys_writeb(CB_BASE+(call_idle<<4)+13,0x38); @@ -216,7 +218,7 @@ 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); + CALLBACK_Setup(call_default,&default_handler,CB_IRET,"default"); /* Only setup default handler for first half of interrupt table */ for (i=0;i<0x40;i++) { real_writed(0,i*4,CALLBACK_RealPointer(call_default));