mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
Make inline assembler compilable using VC
svn path=/trunk/; revision=10647
This commit is contained in:
parent
96b46798d8
commit
c373c9ebb1
1 changed files with 4 additions and 0 deletions
|
@ -637,7 +637,11 @@ KeRosDumpStackFrames ( PULONG Frame, ULONG FrameCount )
|
|||
DbgPrint("Frames: ");
|
||||
if ( !Frame )
|
||||
{
|
||||
#if defined __GNUC__
|
||||
__asm__("mov %%ebp, %%ebx" : "=b" (Frame) : );
|
||||
#elif defined(_MSC_VER)
|
||||
__asm mov [Frame], ebp
|
||||
#endif
|
||||
Frame = (PULONG)Frame[0]; // step out of KeRosDumpStackFrames
|
||||
}
|
||||
while ( MmIsAddressValid(Frame) && i++ < FrameCount )
|
||||
|
|
Loading…
Reference in a new issue