patch-2.4.23 linux-2.4.23/include/asm-sh/ptrace.h

Next file: linux-2.4.23/include/asm-sh64/elf.h
Previous file: linux-2.4.23/include/asm-sh/processor.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/include/asm-sh/ptrace.h linux-2.4.23/include/asm-sh/ptrace.h
@@ -65,6 +65,30 @@
 	unsigned long dummy;
 };
 
+/*
+ * This struct defines the way the DSP registers are stored on the
+ * kernel stack during a system call or other kernel entry.
+ */
+struct pt_dspregs {
+	unsigned long	a1;
+	unsigned long	a0g;
+	unsigned long	a1g;
+	unsigned long	m0;
+	unsigned long	m1;
+	unsigned long	a0;
+	unsigned long	x0;
+	unsigned long	x1;
+	unsigned long	y0;
+	unsigned long	y1;
+	unsigned long	dsr;
+	unsigned long	rs;
+	unsigned long	re;
+	unsigned long	mod;
+};
+
+#define	PTRACE_GETDSPREGS	55
+#define	PTRACE_SETDSPREGS	56
+
 #ifdef __KERNEL__
 #define user_mode(regs) (((regs)->sr & 0x40000000)==0)
 #define instruction_pointer(regs) ((regs)->pc)

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