Author: tkreuzer Date: Tue Dec 9 19:08:40 2008 New Revision: 37987
URL: http://svn.reactos.org/svn/reactos?rev=37987&view=rev Log: Fix DebugService
Modified: branches/ros-amd64-bringup/reactos/lib/rtl/amd64/debug_asm.S
Modified: branches/ros-amd64-bringup/reactos/lib/rtl/amd64/debug_asm.S URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/rt... ============================================================================== --- branches/ros-amd64-bringup/reactos/lib/rtl/amd64/debug_asm.S [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/lib/rtl/amd64/debug_asm.S [iso-8859-1] Tue Dec 9 19:08:40 2008 @@ -44,10 +44,11 @@
.func DebugService2 _DebugService2: + ret /* Call the interrupt */ // mov eax, [rbp+8] // int 0x2D - int 3 +// int 3
.endfunc
@@ -62,27 +63,17 @@ .func DebugService _DebugService:
- /* Save the registers */ - push rbx - push rcx - push rdx - push rsi - push rdi - - /* Load Argument 2 in rax */ - mov rax, [rsp + 48 + 40] + /* Prepare registers for interrupt */ + mov eax, ecx // Service + mov rcx, rdx // Buffer + mov edx, r8d // Length + mov r8, r9 // Argument1 + mov r9, [rsp + 40] // Argument2
/* Call the Interrupt */ int 0x2D int 3
- /* Restore registers */ - pop rdi - pop rsi - pop rdx - pop rcx - pop rbx - - /* Return */ + /* Return */ ret .endfunc