mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
Let the compiler search for usable register.
svn path=/trunk/; revision=18049
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user