ReactOS  0.4.14-dev-552-g2fad488
debug.c
Go to the documentation of this file.
1 #include <ntddk.h>
2 #include <winddk.h>
3 
5 VOID
6 DbgBreakPoint() { __asm__("ti 31,0,0"); }
7 
9 VOID
11 
12 ULONG
13 NTAPI
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
39 (PVOID Arg1, PVOID Arg2, ULONG Service)
40 {
41 }
_IRQL_requires_same_ _In_opt_ PVOID Argument1
Definition: cmtypes.h:694
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
__asm__("\t.globl GetPhys\n" "GetPhys:\t\n" "mflr 0\n\t" "stwu 0,-16(1)\n\t" "mfmsr 5\n\t" "andi. 6,5,0xffef\n\t" "mtmsr 6\n\t" "isync\n\t" "sync\n\t" "lwz 3,0(3)\n\t" "mtmsr 5\n\t" "isync\n\t" "sync\n\t" "lwz 0,0(1)\n\t" "addi 1,1,16\n\t" "mtlr 0\n\t" "blr")
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
#define NTKERNELAPI
VOID NTAPI DebugService2(PVOID Arg1, PVOID Arg2, ULONG Service)
Definition: debug.c:39
_In_ PVOID Argument2
Definition: classpnp.h:680
Status
Definition: gdiplustypes.h:24
ULONG NTAPI DebugService(ULONG Service, PVOID Argument1, PVOID Argument1, PVOID Argument3, PVOID Argument4)
Definition: debug.c:15
NTKERNELAPI VOID DbgBreakPoint()
Definition: debug.c:6
unsigned int ULONG
Definition: retypes.h:1
NTKERNELAPI VOID DbgBreakPointWithStatus(ULONG Status)
Definition: debug.c:10