1998-11-14 19:33:34 +01:00
|
|
|
/*
|
|
|
|
* DOS interrupt 41h handler -- Windows Kernel Debugger
|
|
|
|
*
|
|
|
|
* Check debugsys.inc from the DDK for docu.
|
|
|
|
*/
|
|
|
|
|
1999-02-17 14:51:06 +01:00
|
|
|
#include <stdio.h>
|
1998-11-14 19:33:34 +01:00
|
|
|
#include "miscemu.h"
|
2000-02-10 23:15:21 +01:00
|
|
|
#include "debugtools.h"
|
|
|
|
|
|
|
|
DEFAULT_DEBUG_CHANNEL(int);
|
1998-11-14 19:33:34 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* INT_Int41Handler
|
|
|
|
*
|
|
|
|
*/
|
1999-06-26 20:40:24 +02:00
|
|
|
void WINAPI INT_Int41Handler( CONTEXT86 *context )
|
1998-11-14 19:33:34 +01:00
|
|
|
{
|
|
|
|
if ( ISV86(context) )
|
|
|
|
{
|
|
|
|
/* Real-mode debugger services */
|
|
|
|
switch ( AX_reg(context) )
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
INT_BARF( context, 0x41 );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/* Protected-mode debugger services */
|
|
|
|
switch ( AX_reg(context) )
|
|
|
|
{
|
1998-12-07 11:48:09 +01:00
|
|
|
case 0x4f:
|
1998-11-14 19:33:34 +01:00
|
|
|
case 0x50:
|
|
|
|
case 0x150:
|
|
|
|
case 0x51:
|
|
|
|
case 0x52:
|
|
|
|
case 0x152:
|
|
|
|
case 0x59:
|
|
|
|
case 0x5a:
|
|
|
|
case 0x5b:
|
|
|
|
case 0x5c:
|
|
|
|
case 0x5d:
|
|
|
|
/* Notifies the debugger of a lot of stuff. We simply ignore it
|
|
|
|
for now, but some of the info might actually be useful ... */
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
INT_BARF( context, 0x41 );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|