patch-2.3.16 linux/include/asm-sh/ptrace.h
Next file: linux/include/asm-sh/resource.h
Previous file: linux/include/asm-sh/processor.h
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Mon Aug 30 18:12:59 1999
- Orig file:
v2.3.15/linux/include/asm-sh/ptrace.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.3.15/linux/include/asm-sh/ptrace.h linux/include/asm-sh/ptrace.h
@@ -0,0 +1,31 @@
+#ifndef __ASM_SH_PTRACE_H
+#define __ASM_SH_PTRACE_H
+
+/*
+ * Copyright (C) 1999 Niibe Yutaka
+ *
+ */
+
+/*
+ * This struct defines the way the registers are stored on the
+ * kernel stack during a system call or other kernel entry.
+ */
+struct pt_regs {
+ long syscall_nr;
+ unsigned long u_regs[16];
+ unsigned long gbr;
+ unsigned long mach;
+ unsigned long macl;
+ unsigned long pr;
+ unsigned long sr;
+ unsigned long pc;
+};
+
+#ifdef __KERNEL__
+#define user_mode(regs) (((regs)->sr & 0x40000000)==0)
+#define instruction_pointer(regs) ((regs)->pc)
+extern void show_regs(struct pt_regs *);
+#endif
+
+#define UREG_SP 15
+#endif /* __ASM_SH_PTRACE_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)