patch-2.1.44 linux/include/asm-mips/sigcontext.h

Next file: linux/include/asm-mips/signal.h
Previous file: linux/include/asm-mips/shmparam.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.43/linux/include/asm-mips/sigcontext.h linux/include/asm-mips/sigcontext.h
@@ -1,21 +1,39 @@
+/*
+ * include/asm-mips/uaccess.h
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 1996, 1997 by Ralf Baechle
+ *
+ * $Id: sigcontext.h,v 1.3 1997/06/25 16:57:31 ralf Exp $
+ */
 #ifndef __ASM_MIPS_SIGCONTEXT_H
 #define __ASM_MIPS_SIGCONTEXT_H
 
 /*
- * This struct isn't in the ABI, so we continue to use the old
- * pre 1.3 definition.  Needs to be changed for 64 bit kernels,
- * but it's 4am ...
+ * Keep this struct definition in sync with the sigcontext fragment
+ * in arch/mips/tools/offset.c
  */
-struct sigcontext_struct {
-	unsigned long	       sc_at, sc_v0, sc_v1, sc_a0, sc_a1, sc_a2, sc_a3;
-	unsigned long	sc_t0, sc_t1, sc_t2, sc_t3, sc_t4, sc_t5, sc_t6, sc_t7;
-	unsigned long	sc_s0, sc_s1, sc_s2, sc_s3, sc_s4, sc_s5, sc_s6, sc_s7;
-	unsigned long	sc_t8, sc_t9,               sc_gp, sc_sp, sc_fp, sc_ra;
+struct sigcontext {
+	unsigned int       sc_regmask;		/* Unused */
+	unsigned int       sc_status;
+	unsigned long long sc_pc;
+	unsigned long long sc_regs[32];
+	unsigned long long sc_fpregs[32];	/* Unused */
+	unsigned int       sc_ownedfp;
+	unsigned int       sc_fpc_csr;		/* Unused */
+	unsigned int       sc_fpc_eir;		/* Unused */
+	unsigned int       sc_ssflags;		/* Unused */
+	unsigned long long sc_mdhi;
+	unsigned long long sc_mdlo;
 
-	unsigned long	sc_epc;
-	unsigned long	sc_cause;
+	unsigned int       sc_cause;		/* Unused */
+	unsigned int       sc_badvaddr;		/* Unused */
 
-	unsigned long	sc_oldmask;
+	sigset_t           sc_sigset;
+	unsigned long      __pad0[3];		/* pad for constant size */
 };
 
 #endif /* __ASM_MIPS_SIGCONTEXT_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov