1 #ifndef _H8300_PTRACE_H
2 #define _H8300_PTRACE_H
19 /* this struct defines the way the registers are stored on the
20 stack during a system call. */
34 #if defined(CONFIG_CPU_H8S)
38 } __attribute__((aligned(2),packed
));
40 #define PTRACE_GETREGS 12
41 #define PTRACE_SETREGS 13
48 #if defined(__H8300H__)
49 #define H8300_REGS_NO 11
51 #if defined(__H8300S__)
52 #define H8300_REGS_NO 12
55 /* Find the stack offset for a register, relative to thread.esp0. */
56 #define PT_REG(reg) ((long)&((struct pt_regs *)0)->reg)
58 #define user_mode(regs) (!((regs)->ccr & PS_S))
59 #define instruction_pointer(regs) ((regs)->pc)
60 #define profile_pc(regs) instruction_pointer(regs)
61 extern void show_regs(struct pt_regs
*);
62 #endif /* __KERNEL__ */
63 #endif /* __ASSEMBLY__ */
64 #endif /* _H8300_PTRACE_H */