Ulrich Weigand | ab635b2 | 1998-11-14 18:33:34 +0000 | [diff] [blame] | 1 | /* |
| 2 | * DOS interrupt 41h handler -- Windows Kernel Debugger |
| 3 | * |
| 4 | * Check debugsys.inc from the DDK for docu. |
| 5 | */ |
| 6 | |
Marcus Meissner | 317af32 | 1999-02-17 13:51:06 +0000 | [diff] [blame] | 7 | #include <stdio.h> |
Ulrich Weigand | ab635b2 | 1998-11-14 18:33:34 +0000 | [diff] [blame] | 8 | #include "miscemu.h" |
Alexandre Julliard | 383da68 | 2000-02-10 22:15:21 +0000 | [diff] [blame] | 9 | #include "debugtools.h" |
| 10 | |
| 11 | DEFAULT_DEBUG_CHANNEL(int); |
Ulrich Weigand | ab635b2 | 1998-11-14 18:33:34 +0000 | [diff] [blame] | 12 | |
| 13 | /*********************************************************************** |
Patrik Stridvall | 3ca9823 | 2001-06-20 23:03:14 +0000 | [diff] [blame] | 14 | * INT_Int41Handler (WPROCS.165) |
Ulrich Weigand | ab635b2 | 1998-11-14 18:33:34 +0000 | [diff] [blame] | 15 | * |
| 16 | */ |
Alexandre Julliard | 617955d | 1999-06-26 18:40:24 +0000 | [diff] [blame] | 17 | void WINAPI INT_Int41Handler( CONTEXT86 *context ) |
Ulrich Weigand | ab635b2 | 1998-11-14 18:33:34 +0000 | [diff] [blame] | 18 | { |
| 19 | if ( ISV86(context) ) |
| 20 | { |
| 21 | /* Real-mode debugger services */ |
| 22 | switch ( AX_reg(context) ) |
| 23 | { |
| 24 | default: |
| 25 | INT_BARF( context, 0x41 ); |
| 26 | break; |
| 27 | } |
| 28 | } |
| 29 | else |
| 30 | { |
| 31 | /* Protected-mode debugger services */ |
| 32 | switch ( AX_reg(context) ) |
| 33 | { |
Andreas Mohr | a00b49f | 1998-12-07 10:48:09 +0000 | [diff] [blame] | 34 | case 0x4f: |
Ulrich Weigand | ab635b2 | 1998-11-14 18:33:34 +0000 | [diff] [blame] | 35 | case 0x50: |
| 36 | case 0x150: |
| 37 | case 0x51: |
| 38 | case 0x52: |
| 39 | case 0x152: |
| 40 | case 0x59: |
| 41 | case 0x5a: |
| 42 | case 0x5b: |
| 43 | case 0x5c: |
| 44 | case 0x5d: |
| 45 | /* Notifies the debugger of a lot of stuff. We simply ignore it |
| 46 | for now, but some of the info might actually be useful ... */ |
| 47 | break; |
| 48 | |
| 49 | default: |
| 50 | INT_BARF( context, 0x41 ); |
| 51 | break; |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |