process.c: split struct_user_offsets into architecture-specific include files
* Makefile.am (EXTRA_DIST): Add linux/alpha/userent.h,
linux/arm/userent.h, linux/avr32/userent.h, linux/bfin/userent.h,
linux/crisv10/userent.h, linux/crisv32/userent.h,
linux/i386/userent.h, linux/i386/userent0.h, linux/ia64/userent.h,
linux/m68k/userent.h, linux/microblaze/userent.h,
linux/mips/userent.h, linux/or1k/userent.h, linux/powerpc/userent.h,
linux/s390/userent.h, linux/s390/userent0.h, linux/s390/userent1.h,
linux/s390x/userent.h, linux/sh/userent.h, linux/sh/userent0.h,
linux/sh64/userent.h, linux/sparc/userent.h, linux/sparc64/userent.h,
linux/tile/userent.h, linux/userent.h, linux/userent0.h,
linux/x32/userent.h, linux/x86_64/userent.h, and
linux/xtensa/userent.h.
* process.c (struct_user_offsets): Split into architecture-specific
include files, inculde userent.h.
diff --git a/linux/powerpc/userent.h b/linux/powerpc/userent.h
new file mode 100644
index 0000000..e2094c2
--- /dev/null
+++ b/linux/powerpc/userent.h
@@ -0,0 +1,47 @@
+#ifndef PT_ORIG_R3
+# define PT_ORIG_R3 34
+#endif
+#define REGSIZE (sizeof(unsigned long))
+{ REGSIZE*PT_R0, "r0" },
+{ REGSIZE*PT_R1, "r1" },
+{ REGSIZE*PT_R2, "r2" },
+{ REGSIZE*PT_R3, "r3" },
+{ REGSIZE*PT_R4, "r4" },
+{ REGSIZE*PT_R5, "r5" },
+{ REGSIZE*PT_R6, "r6" },
+{ REGSIZE*PT_R7, "r7" },
+{ REGSIZE*PT_R8, "r8" },
+{ REGSIZE*PT_R9, "r9" },
+{ REGSIZE*PT_R10, "r10" },
+{ REGSIZE*PT_R11, "r11" },
+{ REGSIZE*PT_R12, "r12" },
+{ REGSIZE*PT_R13, "r13" },
+{ REGSIZE*PT_R14, "r14" },
+{ REGSIZE*PT_R15, "r15" },
+{ REGSIZE*PT_R16, "r16" },
+{ REGSIZE*PT_R17, "r17" },
+{ REGSIZE*PT_R18, "r18" },
+{ REGSIZE*PT_R19, "r19" },
+{ REGSIZE*PT_R20, "r20" },
+{ REGSIZE*PT_R21, "r21" },
+{ REGSIZE*PT_R22, "r22" },
+{ REGSIZE*PT_R23, "r23" },
+{ REGSIZE*PT_R24, "r24" },
+{ REGSIZE*PT_R25, "r25" },
+{ REGSIZE*PT_R26, "r26" },
+{ REGSIZE*PT_R27, "r27" },
+{ REGSIZE*PT_R28, "r28" },
+{ REGSIZE*PT_R29, "r29" },
+{ REGSIZE*PT_R30, "r30" },
+{ REGSIZE*PT_R31, "r31" },
+{ REGSIZE*PT_NIP, "NIP" },
+{ REGSIZE*PT_MSR, "MSR" },
+{ REGSIZE*PT_ORIG_R3, "ORIG_R3" },
+{ REGSIZE*PT_CTR, "CTR" },
+{ REGSIZE*PT_LNK, "LNK" },
+{ REGSIZE*PT_XER, "XER" },
+{ REGSIZE*PT_CCR, "CCR" },
+{ REGSIZE*PT_FPR0, "FPR0" },
+#undef REGSIZE
+/* Other fields in "struct user" */
+#include "../userent0.h"