about summary refs log tree commit diff
path: root/arch/powerpc/bits/user.h
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2012-11-09 23:36:55 +0100
committerrofl0r <retnyg@gmx.net>2012-11-13 19:12:25 +0100
commit1c8eb8bad791fe9d01d0d4ab77882db634fa933d (patch)
treed3faf83663c1383f7ea16a0e6c68b3e2f4cc968a /arch/powerpc/bits/user.h
parent7669d1e334e6b96455eece78da43bf830b93d697 (diff)
downloadmusl-1c8eb8bad791fe9d01d0d4ab77882db634fa933d.tar.gz
musl-1c8eb8bad791fe9d01d0d4ab77882db634fa933d.tar.xz
musl-1c8eb8bad791fe9d01d0d4ab77882db634fa933d.zip
PPC port cleaned up, static linking works well now.
Diffstat (limited to 'arch/powerpc/bits/user.h')
-rw-r--r--arch/powerpc/bits/user.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/powerpc/bits/user.h b/arch/powerpc/bits/user.h
new file mode 100644
index 00000000..c533fd8d
--- /dev/null
+++ b/arch/powerpc/bits/user.h
@@ -0,0 +1,40 @@
+struct user_fpregs_struct
+{
+	struct fp_reg {
+		unsigned sign1:1;
+		unsigned unused:15;
+		unsigned sign2:1;
+		unsigned exponent:14;
+		unsigned j:1;
+		unsigned mantissa1:31;
+		unsigned mantissa0:32;
+	} fpregs[8];
+	unsigned fpsr:32;
+	unsigned fpcr:32;
+	unsigned char ftype[8];
+	unsigned int init_flag;
+};
+
+struct user_regs_struct
+{
+	unsigned long uregs[18];
+};
+
+struct user
+{
+	struct user_regs_struct		regs;
+	int				u_fpvalid;
+	unsigned long			u_tsize;
+	unsigned long			u_dsize;
+	unsigned long			u_ssize;
+	unsigned long			start_code;
+	unsigned long			start_stack;
+	long				signal;
+	int				reserved;
+	struct user_regs_struct		*u_ar0;
+	unsigned long int		magic;
+	char				u_comm[32];
+	int				u_debugreg[8];
+	struct user_fpregs_struct	u_fp;
+	struct user_fpregs_struct	*u_fp0;
+};