diff options
author | Greg Ungerer <gerg@uclinux.org> | 2009-07-07 15:54:54 +1000 |
---|---|---|
committer | Greg Ungerer <gerg@goober.(none)> | 2009-12-04 11:45:30 +1000 |
commit | 193f087d492c566a211d01942c0f6b395f34f2ab (patch) | |
tree | a87beb68a5b7c25b9b209425de789db5e984822b /arch/m68k/include | |
parent | 588baeac38829304390b690142376d2c71ac5c9f (diff) | |
download | kernel-crypto-193f087d492c566a211d01942c0f6b395f34f2ab.tar.gz kernel-crypto-193f087d492c566a211d01942c0f6b395f34f2ab.tar.xz kernel-crypto-193f087d492c566a211d01942c0f6b395f34f2ab.zip |
m68knommu: define arch_has_single_step() and friends
Towards adding CONFIG_UTRACE support for non-mmu m68k add
arch_has_single_step, and its support functions user_enable_single_step()
and user_disable_single_step().
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/include')
-rw-r--r-- | arch/m68k/include/asm/ptrace.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/ptrace.h b/arch/m68k/include/asm/ptrace.h index 8c9194b9854..beb20919587 100644 --- a/arch/m68k/include/asm/ptrace.h +++ b/arch/m68k/include/asm/ptrace.h @@ -82,6 +82,18 @@ struct switch_stack { #define instruction_pointer(regs) ((regs)->pc) #define profile_pc(regs) instruction_pointer(regs) extern void show_regs(struct pt_regs *); + +/* + * These are defined as per linux/ptrace.h. + */ +struct task_struct; + +#ifndef CONFIG_MMU +#define arch_has_single_step() (1) +extern void user_enable_single_step(struct task_struct *); +extern void user_disable_single_step(struct task_struct *); +#endif + #endif /* __KERNEL__ */ #endif /* __ASSEMBLY__ */ #endif /* _M68K_PTRACE_H */ |