dfedd25a6293950494177dca49825b0203b65e6a
[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 NTSTATUS
13 NTAPI
14 DebugService
15 (ULONG Service, const void *Buffer, ULONG Length, PVOID Arg1, PVOID Arg2)
16 {
17 NTSTATUS 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" (Buffer),
30 "r" (Length),
31 "r" (Arg1),
32 "r" (Arg2) );
33 return Result;
34 }
35
36 NTSTATUS
37 NTAPI
38 DebugService2
39 (PVOID Arg1, PVOID Arg2, ULONG Service)
40 {
41 return STATUS_SUCCESS;
42 }