mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Fix DebugService
svn path=/branches/ros-amd64-bringup/; revision=35738
This commit is contained in:
@@ -51,27 +51,38 @@ _DebugService2:
|
||||
|
||||
.endfunc
|
||||
|
||||
/******************************************************************************
|
||||
* NTSTATUS NTAPI DebugService(
|
||||
* IN ULONG Service, // <rcx> = [rsp + 8]
|
||||
* IN PVOID Buffer, // <rdx> = [rsp + 16]
|
||||
* IN ULONG Length, // <r8> = [rsp + 24]
|
||||
* IN PVOID Argument1, // <r9> = [rsp + 32]
|
||||
* IN PVOID Argument2); // [rsp + 40]
|
||||
*/
|
||||
.func DebugService
|
||||
_DebugService:
|
||||
|
||||
/* Save the registers */
|
||||
push rbx
|
||||
push rcx
|
||||
push rbx
|
||||
push rdx
|
||||
push rsi
|
||||
push rdi
|
||||
push rdi
|
||||
push rbx
|
||||
|
||||
/* Load Argument 2 in rax */
|
||||
mov rax, [rsp + 48 + 40]
|
||||
|
||||
/* Call the Interrupt */
|
||||
// FIXME: setup registers
|
||||
int 0x2D
|
||||
int 3
|
||||
|
||||
/* Restore registers */
|
||||
pop rbx
|
||||
pop rdi
|
||||
pop rdi
|
||||
pop rsi
|
||||
pop rdx
|
||||
pop rcx
|
||||
pop rbx
|
||||
|
||||
/* Return */
|
||||
ret 20
|
||||
ret
|
||||
.endfunc
|
||||
|
||||
Reference in New Issue
Block a user