Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

kdpcpu.h

Go to the documentation of this file.
00001 /*++ 00002 00003 Copyright (c) 1990 Microsoft Corporation 00004 00005 Module Name: 00006 00007 kdpcpu.h 00008 00009 Abstract: 00010 00011 Machine specific kernel debugger data types and constants 00012 00013 Author: 00014 00015 Mark Lucovsky (markl) 29-Aug-1990 00016 Joe Notarangelo 24-June-1992 (ALPHA version) 00017 00018 Revision History: 00019 00020 --*/ 00021 00022 #ifndef _KDPCPU_ 00023 #define _KDPCPU_ 00024 00025 #include "alphaops.h" 00026 00027 // 00028 // Define KD private PCR routines. 00029 // 00030 // Using the following private KD routines allows the kernel debugger to 00031 // step over breakpoints in modules that call the standard PCR routines. 00032 // 00033 00034 PKPCR KdpGetPcr(); 00035 00036 ULONG KdpReadInternalProcessorState(PVOID, ULONG); 00037 ULONG KdpReadInternalProcessorCounters(PVOID, ULONG); 00038 VOID 00039 KdpReadIoSpaceExtended ( 00040 IN PDBGKD_MANIPULATE_STATE m, 00041 IN PSTRING AdditionalData, 00042 IN PCONTEXT Context 00043 ); 00044 00045 VOID 00046 KdpWriteIoSpaceExtended ( 00047 IN PDBGKD_MANIPULATE_STATE m, 00048 IN PSTRING AdditionalData, 00049 IN PCONTEXT Context 00050 ); 00051 00052 struct _KPRCB * 00053 KdpGetCurrentPrcb(); 00054 00055 struct _KTHREAD * 00056 KdpGetCurrentThread(); 00057 00058 // 00059 // Redefine the standard PCR routines 00060 // 00061 #undef KiPcr 00062 #define KiPcr KdpGetPcr() 00063 00064 #undef KeGetPcr 00065 #undef KeGetCurrentPrcb 00066 #undef KeGetCurrentThread 00067 #undef KeIsExecutingDpc 00068 #define KeGetPcr() KdpGetPcr() 00069 #define KeGetCurrentPrcb() KdpGetCurrentPrcb() 00070 #define KeGetCurrentThread() KdpGetCurrentThread() 00071 00072 // 00073 // Define TYPES 00074 // 00075 00076 #define KDP_BREAKPOINT_TYPE ULONG 00077 00078 // longword aligned 00079 #define KDP_BREAKPOINT_ALIGN 3 00080 00081 // actual instruction is "call_pal kbpt" 00082 #define KDP_BREAKPOINT_VALUE KBPT_FUNC 00083 00084 #endif // _KDPCPU_ 00085

Generated on Sat May 15 19:40:34 2004 for test by doxygen 1.3.7