2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Run-Time Library
4 * PURPOSE: Debug Routines
5 * FILE: lib/rtl/i386/debug.S
6 * PROGRAMER: Timo Kreuzer (timo.kreuzer@reactos.org)
11 /* GLOBALS ****************************************************************/
14 PUBLIC DbgBreakPointWithStatus
15 PUBLIC DbgUserBreakPoint
18 PUBLIC DbgBreakPointNoBugCheck
19 PUBLIC RtlpBreakWithStatusInstruction
21 /* FUNCTIONS ***************************************************************/
25 .PROC DbgBreakPointNoBugCheck
38 .PROC DbgBreakPointWithStatus
43 .PROC RtlpBreakWithStatusInstruction
51 /* Call the interrupt */
57 /******************************************************************************
58 * NTSTATUS NTAPI DebugService(
59 * IN ULONG Service, // <rcx> = [rsp + 8]
60 * IN PVOID Buffer, // <rdx> = [rsp + 16]
61 * IN ULONG Length, // <r8> = [rsp + 24]
62 * IN PVOID Argument1, // <r9> = [rsp + 32]
63 * IN PVOID Argument2); // [rsp + 40]
67 /* Prepare registers for interrupt */
68 mov eax, ecx // Service
69 mov rcx, rdx // Buffer
70 mov edx, r8d // Length
71 mov r8, r9 // Argument1
72 mov r9, [rsp + 40] // Argument2
74 /* Call the Interrupt */