Make inline assembler compilable using VC

svn path=/trunk/; revision=10647
This commit is contained in:
Mike Nordell 2004-08-21 21:14:59 +00:00
parent 96b46798d8
commit c373c9ebb1

View file

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