Commit 1a9ab88f authored by Emmanuel Maillard's avatar Emmanuel Maillard Committed by Alexandre Julliard

Adjust stack pointer in wine_switch_to_stack to prevent segmentation

fault on darwin/ppc.
parent 1d2d2d6b
......@@ -125,6 +125,7 @@ __ASM_GLOBAL_FUNC( wine_switch_to_stack,
"mtctr r3\n\t" /* func -> ctr */
"mr r3,r4\n\t" /* args -> function param 1 (r3) */
"mr r1,r5\n\t" /* stack */
"subi r1,r1,0x100\n\t" /* adjust stack pointer */
"bctr\n" /* call ctr */
"1:\tb 1b"); /* loop */
#elif defined(__powerpc__) && defined(__GNUC__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment