diff options
Diffstat (limited to 'arch/mn10300/include/asm/ptrace.h')
-rw-r--r-- | arch/mn10300/include/asm/ptrace.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mn10300/include/asm/ptrace.h b/arch/mn10300/include/asm/ptrace.h index 7b06cc623d8b..921942ed1b03 100644 --- a/arch/mn10300/include/asm/ptrace.h +++ b/arch/mn10300/include/asm/ptrace.h | |||
@@ -91,9 +91,17 @@ extern struct pt_regs *__frame; /* current frame pointer */ | |||
91 | #if defined(__KERNEL__) | 91 | #if defined(__KERNEL__) |
92 | 92 | ||
93 | #if !defined(__ASSEMBLY__) | 93 | #if !defined(__ASSEMBLY__) |
94 | struct task_struct; | ||
95 | |||
94 | #define user_mode(regs) (((regs)->epsw & EPSW_nSL) == EPSW_nSL) | 96 | #define user_mode(regs) (((regs)->epsw & EPSW_nSL) == EPSW_nSL) |
95 | #define instruction_pointer(regs) ((regs)->pc) | 97 | #define instruction_pointer(regs) ((regs)->pc) |
98 | #define user_stack_pointer(regs) ((regs)->sp) | ||
96 | extern void show_regs(struct pt_regs *); | 99 | extern void show_regs(struct pt_regs *); |
100 | |||
101 | #define arch_has_single_step() (1) | ||
102 | extern void user_enable_single_step(struct task_struct *); | ||
103 | extern void user_disable_single_step(struct task_struct *); | ||
104 | |||
97 | #endif /* !__ASSEMBLY */ | 105 | #endif /* !__ASSEMBLY */ |
98 | 106 | ||
99 | #define profile_pc(regs) ((regs)->pc) | 107 | #define profile_pc(regs) ((regs)->pc) |