mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Let the compiler search for usable register.
svn path=/trunk/; revision=18049
This commit is contained in:
parent
66e998c053
commit
6ace27feae
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue