- Optimize DebugService -- patch from Alex
authorStefan Ginsberg <stefanginsberg@gmail.com>
Fri, 14 Nov 2008 19:14:00 +0000 (19:14 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Fri, 14 Nov 2008 19:14:00 +0000 (19:14 +0000)
svn path=/trunk/; revision=37362

reactos/lib/rtl/i386/debug_asm.S

index 7d9de6a..c79545f 100644 (file)
@@ -67,13 +67,11 @@ _DebugService@20:
     /* Setup the stack */
     push ebp
     mov ebp, esp
-
     /* Save the registers */
-    push ecx
     push ebx
     push edi
-    push edx
-
     /* Call the Interrupt */
     mov eax, [ebp+8]
     mov ecx, [ebp+12]
@@ -82,14 +80,12 @@ _DebugService@20:
     mov edi, [ebp+24]
     int 0x2D
     int 3
-
     /* Restore registers */
-    pop edx
     pop edi
     pop ebx
-    pop ecx
-
     /* Return */
-    leave
+    pop ebp
     ret 20
 .endfunc