Author: dgorbachev
Date: Wed Jul 27 02:37:47 2011
New Revision: 52917
URL:
http://svn.reactos.org/svn/reactos?rev=52917&view=rev
Log:
[NTOSKRNL]
Fix a bug in KiConvertToGuiThread inline asm and get rid of 1 instruction.
Modified:
trunk/reactos/ntoskrnl/include/internal/i386/ke.h
Modified: trunk/reactos/ntoskrnl/include/internal/i386/ke.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/i386/ke.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/i386/ke.h [iso-8859-1] Wed Jul 27 02:37:47
2011
@@ -759,13 +759,12 @@
*/
__asm__ __volatile__
(
- "movl %%ebp, %1\n"
- "subl %%esp, %1\n"
- "call _PsConvertToGuiThread@0\n"
- "addl %%esp, %1\n"
- "movl %1, %%ebp\n"
- "movl %%eax, %0\n"
- : "=r"(Result), "=r"(StackFrame)
+ "movl %%ebp, %1\n\t"
+ "subl %%esp, %1\n\t"
+ "call _PsConvertToGuiThread@0\n\t"
+ "addl %%esp, %1\n\t"
+ "movl %1, %%ebp"
+ : "=a"(Result), "=r"(StackFrame)
:
: "%esp", "%ecx", "%edx", "memory"
);