patch-2.4.6 linux/arch/mips/tools/offset.c

Next file: linux/arch/mips64/ld.script.elf32.S
Previous file: linux/arch/mips/mm/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/arch/mips/tools/offset.c linux/arch/mips/tools/offset.c
@@ -1,12 +1,13 @@
-/* $Id: offset.c,v 1.11 1999/09/28 22:25:50 ralf Exp $
- *
+/*
  * offset.c: Calculate pt_regs and task_struct offsets.
  *
  * Copyright (C) 1996 David S. Miller
  * Copyright (C) 1997, 1998, 1999 Ralf Baechle
  * Copyright (C) 1999 Silicon Graphics, Inc.
+ *
+ * Kevin Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com
+ * Copyright (C) 2000 MIPS Technologies, Inc.
  */
-
 #include <linux/types.h>
 #include <linux/sched.h>
 
@@ -84,6 +85,7 @@
 	offset("#define TASK_COUNTER       ", struct task_struct, counter);
 	offset("#define TASK_NICE          ", struct task_struct, nice);
 	offset("#define TASK_MM            ", struct task_struct, mm);
+	offset("#define TASK_PID           ", struct task_struct, pid);
 	size("#define TASK_STRUCT_SIZE   ", struct task_struct);
 	linefeed;
 }
@@ -119,6 +121,10 @@
 	       thread.irix_trampoline);
 	offset("#define THREAD_OLDCTX  ", struct task_struct, \
 	       thread.irix_oldctx);
+	offset("#define THREAD_DSEEPC  ", struct task_struct, \
+	       thread.dsemul_epc);
+	offset("#define THREAD_DSEAERPC ", struct task_struct, \
+	       thread.dsemul_aerpc);
 	linefeed;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)