Big merge: thanks alex and greatlord. Not a complete merge but most
[reactos.git] / reactos / lib / rtl / exception.c
index 44c5d16..c992011 100644 (file)
@@ -125,11 +125,15 @@ RtlWalkFrameChain(OUT PVOID *Callers,
     ULONG i = 0;
 
     /* Get current EBP */
+#ifdef _M_IX86
 #if defined __GNUC__
     __asm__("mov %%ebp, %0" : "=r" (Stack) : );
 #elif defined(_MSC_VER)
     __asm mov Stack, ebp
 #endif
+#elif defined(_M_PPC)
+    __asm__("mr %0, %%r1" : "=r" (Stack) : );
+#endif
 
     /* Set it as the stack begin limit as well */
     StackBegin = (ULONG_PTR)Stack;