Let the compiler search for usable register.
Modified: trunk/reactos/lib/rtl/heap.c
Modified: trunk/reactos/ntoskrnl/ke/i386/exp.c
_____
Modified: trunk/reactos/lib/rtl/heap.c
--- trunk/reactos/lib/rtl/heap.c 2005-09-25 12:30:51 UTC (rev
18048)
+++ trunk/reactos/lib/rtl/heap.c 2005-09-25 12:39:32 UTC (rev
18049)
@@ -955,7 +955,7 @@
if ( !Frame )
{
#if defined __GNUC__
- __asm__("mov %%ebp, %%ebx" : "=b" (Frame) : );
+ __asm__("mov %%ebp, %0" : "=r" (Frame) : );
#elif defined(_MSC_VER)
__asm mov [Frame], ebp
#endif
_____
Modified: trunk/reactos/ntoskrnl/ke/i386/exp.c
--- trunk/reactos/ntoskrnl/ke/i386/exp.c 2005-09-25 12:30:51 UTC
(rev 18048)
+++ trunk/reactos/ntoskrnl/ke/i386/exp.c 2005-09-25 12:39:32 UTC
(rev 18049)
@@ -988,7 +988,7 @@
if ( !Frame )
{
#if defined __GNUC__
- __asm__("mov %%ebp, %%ebx" : "=b" (Frame) : );
+ __asm__("mov %%ebp, %0" : "=r" (Frame) : );
#elif defined(_MSC_VER)
__asm mov [Frame], ebp
#endif
@@ -1042,7 +1042,7 @@
_SEH_TRY
{
#if defined __GNUC__
- __asm__("mov %%ebp, %%ebx" : "=b" (Frame) : );
+ __asm__("mov %%ebp, %0" : "=r" (Frame) : );
#elif defined(_MSC_VER)
__asm mov [Frame], ebp
#endif
Show replies by date