From 6ace27feae1ea0097fc93b9658585cd5d1798718 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 25 Sep 2005 12:39:32 +0000 Subject: [PATCH] Let the compiler search for usable register. svn path=/trunk/; revision=18049 --- reactos/lib/rtl/heap.c | 2 +- reactos/ntoskrnl/ke/i386/exp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/rtl/heap.c b/reactos/lib/rtl/heap.c index b8a818cc355..fce1c3ae81e 100644 --- a/reactos/lib/rtl/heap.c +++ b/reactos/lib/rtl/heap.c @@ -955,7 +955,7 @@ void DumpStackFrames ( PULONG Frame, ULONG FrameCount ) 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 diff --git a/reactos/ntoskrnl/ke/i386/exp.c b/reactos/ntoskrnl/ke/i386/exp.c index ce4f06d3fee..8f0cc2f35a2 100644 --- a/reactos/ntoskrnl/ke/i386/exp.c +++ b/reactos/ntoskrnl/ke/i386/exp.c @@ -988,7 +988,7 @@ KeRosDumpStackFrames ( PULONG Frame, ULONG FrameCount ) 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 @@ KeRosGetStackFrames ( PULONG Frames, ULONG FrameCount ) _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