patch-1.3.71 linux/include/asm-sparc/user.h

Next file: linux/include/asm-sparc/vac-ops.h
Previous file: linux/include/asm-sparc/unistd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.70/linux/include/asm-sparc/user.h linux/include/asm-sparc/user.h
@@ -1,4 +1,4 @@
-/* $Id: user.h,v 1.2 1995/11/25 02:33:15 davem Exp $
+/* $Id: user.h,v 1.3 1995/12/29 21:48:03 davem Exp $
  * asm-sparc/user.h: Core file definitions for the Sparc.
  *
  * Copyright (C) 1995 (davem@caip.rutgers.edu)
@@ -6,18 +6,45 @@
 #ifndef _SPARC_USER_H
 #define _SPARC_USER_H
 
+struct sunos_regs {
+	unsigned long psr, pc, npc, y;
+	unsigned long regs[15];
+};
+
+struct sunos_fpqueue {
+	unsigned long *addr;
+	unsigned long inst;
+};
+
+struct sunos_fp {
+	union {
+		unsigned long regs[32];
+		double reg_dbls[16];
+	} fregs;
+	unsigned long fsr;
+	unsigned long flags;
+	unsigned long extra;
+	unsigned long fpq_count;
+	struct sunos_fpqueue fpq[16];
+};
+
+struct sunos_fpu {
+	struct sunos_fp fpstatus;
+};
+
+/* The SunOS core file header layout. */
 struct user {
-	unsigned long regs[24 + 32]; /* locals, ins, globals + fpu regs */
-	size_t        u_tsize;
+	unsigned long magic;
+	unsigned long len;
+	struct sunos_regs regs;
+	struct exec uexec;
+	int           signal;
+	size_t        u_tsize; /* all of these in bytes! */
 	size_t        u_dsize;
 	size_t        u_ssize;
-	unsigned long start_code;
-	unsigned long start_data;
-	unsigned long start_stack;
-	int           signal;
-	unsigned long *u_ar0;
-	unsigned long magic;
-	char          u_comm[32];
+	char          u_comm[17];
+	struct sunos_fpu fpu;
+	unsigned long sigcode;   /* Special sigcontext subcode, if any */
 };
 
 #define NBPG                   PAGE_SIZE
@@ -25,5 +52,6 @@
 #define HOST_TEXT_START_ADDR   (u.start_code)
 #define HOST_DATA_START_ADDR   (u.start_data)
 #define HOST_STACK_END_ADDR    (u.start_stack + u.u_ssize * NBPG)
+#define SUNOS_CORE_MAGIC       0x080456
 
 #endif /* !(_SPARC_USER_H) */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this