Author: fireball
Date: Sat Nov 22 02:26:53 2008
New Revision: 37542
URL:
http://svn.reactos.org/svn/reactos?rev=37542&view=rev
Log:
Dmitry Gorbachev
- SETxx instructions require 8-bit operand, but "r" constraint is used. Use
"q" instead ("r" means any general register, including esi and edi,
which are not suitable as an operand of setnz.)
See issue #3772 for more details.
Modified:
trunk/reactos/include/psdk/winnt.h
Modified: trunk/reactos/include/psdk/winnt.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winnt.h?rev=3…
==============================================================================
--- trunk/reactos/include/psdk/winnt.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/winnt.h [iso-8859-1] Sat Nov 22 02:26:53 2008
@@ -4812,7 +4812,7 @@
#if defined(_M_IX86)
__asm__ __volatile__("bsrl %2,%0\n\t"
"setnz %1\n\t"
- :"=&r" (*Index), "=r" (BitPosition)
+ :"=&r" (*Index), "=q" (BitPosition)
:"rm" (Mask)
:"memory");
return BitPosition;