python-greenlet/ppc-support.patch

22 lines
809 B
Diff

Index: greenlet-0.3.1/platform/switch_ppc_unix.h
===================================================================
--- greenlet-0.3.1.orig/platform/switch_ppc_unix.h
+++ greenlet-0.3.1/platform/switch_ppc_unix.h
@@ -42,7 +42,7 @@
* is meant to be compiled non-dynamically!
*/
#define REGS_TO_SAVE "r13", "r14", "r15", "r16", "r17", "r18", "r19", "r20", \
- "r21", "r22", "r23", "r24", "r25", "r26", "r27", "r28", "r29", \
+ "r21", "r22", "r23", "r24", "r25", "r26", "r27", "r28", "r29", "r31", \
"cr2", "cr3", "cr4"
static int
slp_switch(void)
@@ -55,7 +55,6 @@ slp_switch(void)
__asm__ volatile (
"mr 11, %0\n"
"add 1, 1, 11\n"
- "add 30, 30, 11\n"
: /* no outputs */
: "g" (stsizediff)
: "11"