- DBGKD_WAIT_STATE_CHANGE64 is used in KD protocol 5, not number 6 that we use. Proto...
[reactos.git] / reactos / lib / rtl / powerpc / debug.c
1 #include <ntddk.h>
2 #include <winddk.h>
3
4 NTKERNELAPI
5 VOID
6 DbgBreakPoint() { __asm__("ti 31,0,0"); }
7
8 NTKERNELAPI
9 VOID
10 DbgBreakPointWithStatus(ULONG Status) { __asm__("ti 31,0,0"); }
11
12 ULONG
13 NTAPI
14 DebugService
15 (ULONG Service, PVOID Argument1, PVOID Argument1, PVOID Argument3, PVOID Argument4)
16 {
17 ULONG Result;
18 __asm__("mr 0,%1\n\t"
19 "mr 3,%2\n\t"
20 "mr 4,%3\n\t"
21 "mr 5,%4\n\t"
22 "mr 6,%5\n\t"
23 "mr 7,%6\n\t"
24 "sc\n\t"
25 "mr %0,3\n\t" :
26 "=r" (Result) :
27 "r" (0x10000),
28 "r" (Service),
29 "r" (Argument1),
30 "r" (Argument2),
31 "r" (Argument3),
32 "r" (Argument4) );
33 return Result;
34 }
35
36 VOID
37 NTAPI
38 DebugService2
39 (PVOID Arg1, PVOID Arg2, ULONG Service)
40 {
41 }