#include <ntoskrnl.h>
#include <debug.h>
Go to the source code of this file.
|
VOID NTAPI | KdpGetStateChange (IN PDBGKD_MANIPULATE_STATE64 State, IN PCONTEXT Context) |
|
VOID NTAPI | KdpSetContextState (IN PDBGKD_ANY_WAIT_STATE_CHANGE WaitStateChange, IN PCONTEXT Context) |
|
NTSTATUS NTAPI | KdpSysReadMsr (IN ULONG Msr, OUT PLARGE_INTEGER MsrValue) |
|
NTSTATUS NTAPI | KdpSysWriteMsr (IN ULONG Msr, IN PLARGE_INTEGER MsrValue) |
|
NTSTATUS NTAPI | KdpSysReadBusData (IN ULONG BusDataType, IN ULONG BusNumber, IN ULONG SlotNumber, IN ULONG Offset, IN PVOID Buffer, IN ULONG Length, OUT PULONG ActualLength) |
|
NTSTATUS NTAPI | KdpSysWriteBusData (IN ULONG BusDataType, IN ULONG BusNumber, IN ULONG SlotNumber, IN ULONG Offset, IN PVOID Buffer, IN ULONG Length, OUT PULONG ActualLength) |
|
NTSTATUS NTAPI | KdpSysReadControlSpace (IN ULONG Processor, IN ULONG64 BaseAddress, IN PVOID Buffer, IN ULONG Length, OUT PULONG ActualLength) |
|
NTSTATUS NTAPI | KdpSysWriteControlSpace (IN ULONG Processor, IN ULONG64 BaseAddress, IN PVOID Buffer, IN ULONG Length, OUT PULONG ActualLength) |
|
NTSTATUS NTAPI | KdpSysReadIoSpace (IN ULONG InterfaceType, IN ULONG BusNumber, IN ULONG AddressSpace, IN ULONG64 IoAddress, IN PVOID DataValue, IN ULONG DataSize, OUT PULONG ActualDataSize) |
|
NTSTATUS NTAPI | KdpSysWriteIoSpace (IN ULONG InterfaceType, IN ULONG BusNumber, IN ULONG AddressSpace, IN ULONG64 IoAddress, IN PVOID DataValue, IN ULONG DataSize, OUT PULONG ActualDataSize) |
|
NTSTATUS NTAPI | KdpSysCheckLowMemory (IN ULONG Flags) |
|
NTSTATUS NTAPI | KdpAllowDisable (VOID) |
|
◆ NDEBUG
◆ KdpAllowDisable()
Definition at line 427 of file kdx86.c.
428{
430
431
433 {
435
436
437
440 }
441
442
444}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
PKPRCB KiProcessorBlock[]
KPROCESSOR_STATE ProcessorState
KSPECIAL_REGISTERS SpecialRegisters
#define STATUS_ACCESS_DENIED
Referenced by KdDisableDebuggerWithLock().
◆ KdpGetStateChange()
Definition at line 20 of file kdx86.c.
22{
25
26
28 {
29
30 if (
State->u.Continue2.ControlSet.TraceFlag)
31 {
32
34 }
35 else
36 {
37
39 }
40
41
43 {
44
47 State->u.Continue2.ControlSet.Dr7;
49 }
50
51
52 if (
State->u.Continue2.ControlSet.CurrentSymbolStart != 1)
53 {
54
56 State->u.Continue2.ControlSet.CurrentSymbolStart;
58 }
59 }
60}
#define NT_SUCCESS(StatCode)
ULONG_PTR KdpCurrentSymbolEnd
ULONG_PTR KdpCurrentSymbolStart
Referenced by KdpSendWaitContinue().
◆ KdpSetContextState()
◆ KdpSysCheckLowMemory()
◆ KdpSysReadBusData()
Definition at line 138 of file kdx86.c.
145{
146
153
154
156}
ULONG NTAPI HalGetBusDataByOffset(IN BUS_DATA_TYPE BusDataType, IN ULONG BusNumber, IN ULONG SlotNumber, IN PVOID Buffer, IN ULONG Offset, IN ULONG Length)
_In_ ULONG _In_ ULONG Offset
_In_ ULONG _In_ ULONG _In_ ULONG Length
_In_ WDFIORESREQLIST _In_ ULONG SlotNumber
_In_opt_ PUNICODE_STRING _In_ PDRIVER_OBJECT _In_ PDEVICE_OBJECT _In_ INTERFACE_TYPE _In_ ULONG BusNumber
Referenced by KdpGetBusData().
◆ KdpSysReadControlSpace()
Definition at line 182 of file kdx86.c.
187{
190
191
194 {
195
198
199
202 ProcessorState);
203
204
206 ControlStart,
208 0,
210 ActualLength);
211 }
212 else
213 {
214
215 *ActualLength = 0;
217 }
218}
NTSTATUS NTAPI KdpCopyMemoryChunks(_In_ ULONG64 Address, _In_ PVOID Buffer, _In_ ULONG TotalSize, _In_ ULONG ChunkSize, _In_ ULONG Flags, _Out_opt_ PULONG ActualSize)
struct _KPROCESSOR_STATE KPROCESSOR_STATE
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
#define MMDBG_COPY_UNSAFE
Referenced by KdpReadControlSpace().
◆ KdpSysReadIoSpace()
Definition at line 257 of file kdx86.c.
264{
266
267
271 {
272
273 *ActualDataSize = 0;
275 }
276
277
279 {
281
282
285 *ActualDataSize =
sizeof(
UCHAR);
287 break;
288
290
291
292 if ((IoAddress & (
sizeof(
USHORT) - 1)) != 0)
293 {
294
295 *ActualDataSize = 0;
297 break;
298 }
299
300
303 *ActualDataSize =
sizeof(
USHORT);
305 break;
306
308
309
310 if ((IoAddress & (
sizeof(
ULONG) - 1)) != 0)
311 {
312
313 *ActualDataSize = 0;
315 break;
316 }
317
318
321 *ActualDataSize =
sizeof(
ULONG);
323 break;
324
325 default:
326
327
328 *ActualDataSize = 0;
330 }
331
332
334}
ULONG NTAPI READ_PORT_ULONG(IN PULONG Port)
USHORT NTAPI READ_PORT_USHORT(IN PUSHORT Port)
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
#define STATUS_DATATYPE_MISALIGNMENT
#define READ_PORT_UCHAR(p)
#define STATUS_INVALID_PARAMETER
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID InterfaceType
_In_ ULONG _In_ PHYSICAL_ADDRESS _Inout_ PULONG AddressSpace
Referenced by KdpReadIoSpace(), and KdpReadIoSpaceExtended().
◆ KdpSysReadMsr()
Definition at line 94 of file kdx86.c.
96{
97
99 {
100
102 }
104 {
105
107 }
109
110
112}
#define EXCEPTION_EXECUTE_HANDLER
PPC_QUAL unsigned long long __readmsr()
#define _SEH2_EXCEPT(...)
#define _SEH2_YIELD(__stmt)
#define STATUS_NO_SUCH_DEVICE
Referenced by KdpReadMachineSpecificRegister().
◆ KdpSysWriteBusData()
Definition at line 160 of file kdx86.c.
167{
168
175
176
178}
ULONG NTAPI HalSetBusDataByOffset(IN BUS_DATA_TYPE BusDataType, IN ULONG BusNumber, IN ULONG SlotNumber, IN PVOID Buffer, IN ULONG Offset, IN ULONG Length)
Referenced by KdpSetBusData().
◆ KdpSysWriteControlSpace()
Definition at line 222 of file kdx86.c.
227{
229
230
233 {
234
237 ProcessorState);
238
239
241 ControlStart,
243 0,
245 ActualLength);
246 }
247 else
248 {
249
250 *ActualLength = 0;
252 }
253}
Referenced by KdpWriteControlSpace().
◆ KdpSysWriteIoSpace()
Definition at line 338 of file kdx86.c.
345{
347
348
352 {
353
354 *ActualDataSize = 0;
356 }
357
358
360 {
362
363
366 *ActualDataSize =
sizeof(
UCHAR);
368 break;
369
371
372
373 if ((IoAddress & (
sizeof(
USHORT) - 1)) != 0)
374 {
375
376 *ActualDataSize = 0;
378 break;
379 }
380
381
384 *ActualDataSize =
sizeof(
USHORT);
386 break;
387
389
390
391 if ((IoAddress & (
sizeof(
ULONG) - 1)) != 0)
392 {
393
394 *ActualDataSize = 0;
396 break;
397 }
398
399
402 *ActualDataSize =
sizeof(
ULONG);
404 break;
405
406 default:
407
408
409 *ActualDataSize = 0;
411 }
412
413
415}
VOID NTAPI WRITE_PORT_USHORT(IN PUSHORT Port, IN USHORT Value)
VOID NTAPI WRITE_PORT_ULONG(IN PULONG Port, IN ULONG Value)
#define WRITE_PORT_UCHAR(p, d)
Referenced by KdpWriteIoSpace(), and KdpWriteIoSpaceExtended().
◆ KdpSysWriteMsr()