aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mn10300/include/asm/ptrace.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2009-06-11 08:08:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-11 12:02:20 -0400
commit5d289964e1f1e8a2ec4289274bf15bce6a4f8ab8 (patch)
tree061886f652727e344067fef18ed50446bae84986 /arch/mn10300/include/asm/ptrace.h
parentfd4f683d045e053abb093f80d81afce30ceadad2 (diff)
MN10300: Add utrace/tracehooks support
Add utrace/tracehooks support to MN10300. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mn10300/include/asm/ptrace.h')
-rw-r--r--arch/mn10300/include/asm/ptrace.h8
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__)
94struct 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)
96extern void show_regs(struct pt_regs *); 99extern void show_regs(struct pt_regs *);
100
101#define arch_has_single_step() (1)
102extern void user_enable_single_step(struct task_struct *);
103extern 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)