xref: /reactos/sdk/include/reactos/kdros.h (revision 3dc4d408)
1 
2 
3 
4 #pragma once
5 
6 #if 0
7 
8 FORCEINLINE
9 VOID
10 KdRosDumpAllThreads(VOID)
11 {
12     KdSystemDebugControl(' soR', (PVOID)DumpAllThreads, 0, 0, 0, 0, 0);
13 }
14 
15 FORCEINLINE
16 VOID
17 KdRosDumpUserThreads(VOID)
18 {
19     KdSystemDebugControl(' soR', (PVOID)DumpUserThreads, 0, 0, 0, 0, 0);
20 }
21 
22 FORCEINLINE
23 VOID
24 KdRosDumpArmPfnDatabase(VOID)
25 {
26     KdSystemDebugControl(' soR', (PVOID)KdSpare3, 0, 0, 0, 0, 0);
27 }
28 #endif
29 
30 FORCEINLINE
31 VOID
KdRosSetDebugCallback(ULONG Id,PVOID Callback)32 KdRosSetDebugCallback(
33     ULONG Id,
34     PVOID Callback)
35 {
36     KdSystemDebugControl('CsoR', Callback, Id, 0, 0, 0, 0);
37 }
38 
39 FORCEINLINE
40 VOID
KdRosDumpStackFrames(ULONG Count,PULONG_PTR Backtrace)41 KdRosDumpStackFrames(
42     ULONG Count,
43     PULONG_PTR Backtrace)
44 {
45     KdSystemDebugControl('DsoR', Backtrace, Count, 0, 0, 0, 0);
46 }
47 
48 #if defined(KDBG)
49 typedef
50 BOOLEAN
51 (NTAPI KDBG_CLI_ROUTINE)(
52     IN PCHAR Command,
53     IN ULONG Argc,
54     IN PCH Argv[]);
55 typedef KDBG_CLI_ROUTINE *PKDBG_CLI_ROUTINE;
56 
57 FORCEINLINE
58 ULONG
KdRosRegisterCliCallback(PKDBG_CLI_ROUTINE Callback)59 KdRosRegisterCliCallback(
60     PKDBG_CLI_ROUTINE Callback)
61 {
62     return KdSystemDebugControl('RbdK', Callback, FALSE, 0, 0, 0, 0);
63 }
64 
65 FORCEINLINE
66 VOID
KdRosDeregisterCliCallback(PKDBG_CLI_ROUTINE Callback)67 KdRosDeregisterCliCallback(
68     PKDBG_CLI_ROUTINE Callback)
69 {
70     KdSystemDebugControl('RbdK', Callback, TRUE, 0, 0, 0, 0);
71 }
72 #endif
73 
74