ReactOS  0.4.15-dev-985-gd905dd5
debug.c File Reference
#include <ntddk.h>
#include <winddk.h>
Include dependency graph for debug.c:

Go to the source code of this file.

Functions

NTKERNELAPI VOID DbgBreakPoint ()
 
NTKERNELAPI VOID DbgBreakPointWithStatus (ULONG Status)
 
ULONG NTAPI DebugService (ULONG Service, PVOID Argument1, PVOID Argument1, PVOID Argument3, PVOID Argument4)
 
VOID NTAPI DebugService2 (PVOID Arg1, PVOID Arg2, ULONG Service)
 

Function Documentation

◆ DbgBreakPoint()

NTKERNELAPI VOID DbgBreakPoint ( void  )

Definition at line 6 of file debug.c.

6 { __asm__("ti 31,0,0"); }
__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")

Referenced by RtlAssert().

◆ DbgBreakPointWithStatus()

NTKERNELAPI VOID DbgBreakPointWithStatus ( ULONG  Status)

Definition at line 10 of file debug.c.

10 { __asm__("ti 31,0,0"); }
__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")

Referenced by vDbgPrintExWithPrefixInternal().

◆ DebugService()

ULONG NTAPI DebugService ( ULONG  Service,
PVOID  Argument1,
PVOID  Argument1,
PVOID  Argument3,
PVOID  Argument4 
)

Definition at line 15 of file debug.c.

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 }
_IRQL_requires_same_ _In_opt_ PVOID Argument1
Definition: cmtypes.h:696
__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
_In_ PVOID Argument2
Definition: classpnp.h:721
unsigned int ULONG
Definition: retypes.h:1

Referenced by DebugPrint(), and DebugPrompt().

◆ DebugService2()

VOID NTAPI DebugService2 ( PVOID  Arg1,
PVOID  Arg2,
ULONG  Service 
)

Definition at line 39 of file debug.c.

40 {
41 }

Referenced by DbgCommandString(), DbgLoadImageSymbols(), and DbgUnLoadImageSymbols().