File: ppc64le.diff

package info (click to toggle)
python-greenlet 0.4.2-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 488 kB
  • ctags: 588
  • sloc: ansic: 2,162; python: 1,215; makefile: 161; cpp: 89; asm: 82
file content (36 lines) | stat: -rw-r--r-- 1,260 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Index: b/platform/switch_ppc64_linux.h
===================================================================
--- a/platform/switch_ppc64_linux.h
+++ b/platform/switch_ppc64_linux.h
@@ -2,6 +2,8 @@
  * this is the internal transfer function.
  *
  * HISTORY
+ * 10-Dec-13  Ulrich Weigand  <uweigand@de.ibm.com>
+ *	Support ELFv2 ABI.  Save float/vector registers.
  * 09-Mar-12 Michael Ellerman <michael@ellerman.id.au>
  *      64-bit implementation, copied from 32-bit.
  * 07-Sep-05 (py-dev mailing list discussion)
@@ -40,13 +42,22 @@
 
 #ifdef SLP_EVAL
 
+#if _CALL_ELF == 2
+#define STACK_MAGIC 4
+#else
 #define STACK_MAGIC 6
+#endif
 
 /* !!!!WARNING!!!! need to add "r31" in the next line if this header file
  * is meant to be compiled non-dynamically!
  */
 #define REGS_TO_SAVE "r2", "r14", "r15", "r16", "r17", "r18", "r19", "r20", \
        "r21", "r22", "r23", "r24", "r25", "r26", "r27", "r28", "r29", "r31", \
+       "fr14", "fr15", "fr16", "fr17", "fr18", "fr19", "fr20", "fr21", \
+       "fr22", "fr23", "fr24", "fr25", "fr26", "fr27", "fr28", "fr29", \
+       "fr30", "fr31", \
+       "v20", "v21", "v22", "v23", "v24", "v25", "v26", "v27", \
+       "v28", "v29", "v30", "v31", \
        "cr2", "cr3", "cr4"
 static int
 slp_switch(void)