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;