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