diff options
Diffstat (limited to 'arch/m68k/include')
-rw-r--r-- | arch/m68k/include/asm/ptrace.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/ptrace.h b/arch/m68k/include/asm/ptrace.h index 8c9194b98548..117adb1e4806 100644 --- a/arch/m68k/include/asm/ptrace.h +++ b/arch/m68k/include/asm/ptrace.h | |||
@@ -71,6 +71,8 @@ struct switch_stack { | |||
71 | #define PTRACE_GETFPREGS 14 | 71 | #define PTRACE_GETFPREGS 14 |
72 | #define PTRACE_SETFPREGS 15 | 72 | #define PTRACE_SETFPREGS 15 |
73 | 73 | ||
74 | #define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */ | ||
75 | |||
74 | #ifdef __KERNEL__ | 76 | #ifdef __KERNEL__ |
75 | 77 | ||
76 | #ifndef PS_S | 78 | #ifndef PS_S |
@@ -82,6 +84,21 @@ struct switch_stack { | |||
82 | #define instruction_pointer(regs) ((regs)->pc) | 84 | #define instruction_pointer(regs) ((regs)->pc) |
83 | #define profile_pc(regs) instruction_pointer(regs) | 85 | #define profile_pc(regs) instruction_pointer(regs) |
84 | extern void show_regs(struct pt_regs *); | 86 | extern void show_regs(struct pt_regs *); |
87 | |||
88 | /* | ||
89 | * These are defined as per linux/ptrace.h, which see. | ||
90 | */ | ||
91 | struct task_struct; | ||
92 | |||
93 | #ifdef CONFIG_MMU | ||
94 | #define arch_has_single_step() (1) | ||
95 | extern void user_enable_single_step(struct task_struct *); | ||
96 | extern void user_disable_single_step(struct task_struct *); | ||
97 | |||
98 | #define arch_has_block_step() (1) | ||
99 | extern void user_enable_block_step(struct task_struct *); | ||
100 | #endif | ||
101 | |||
85 | #endif /* __KERNEL__ */ | 102 | #endif /* __KERNEL__ */ |
86 | #endif /* __ASSEMBLY__ */ | 103 | #endif /* __ASSEMBLY__ */ |
87 | #endif /* _M68K_PTRACE_H */ | 104 | #endif /* _M68K_PTRACE_H */ |