Let the compiler search for usable register.

svn path=/trunk/; revision=18049
This commit is contained in:
Hartmut Birr 2005-09-25 12:39:32 +00:00
parent 66e998c053
commit 6ace27feae
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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