Import 2.3.18pre1
[davej-history.git] / include / asm-sh / ptrace.h
blob3f2da6d2d9541e00df07e5a162bd8f25fe85df43
1 #ifndef __ASM_SH_PTRACE_H
2 #define __ASM_SH_PTRACE_H
4 /*
5 * Copyright (C) 1999 Niibe Yutaka
7 */
9 /*
10 * This struct defines the way the registers are stored on the
11 * kernel stack during a system call or other kernel entry.
13 struct pt_regs {
14 long syscall_nr;
15 unsigned long u_regs[16];
16 unsigned long gbr;
17 unsigned long mach;
18 unsigned long macl;
19 unsigned long pr;
20 unsigned long sr;
21 unsigned long pc;
24 #ifdef __KERNEL__
25 #define user_mode(regs) (((regs)->sr & 0x40000000)==0)
26 #define instruction_pointer(regs) ((regs)->pc)
27 extern void show_regs(struct pt_regs *);
28 #endif
30 #define UREG_SP 15
31 #endif /* __ASM_SH_PTRACE_H */