diff options
-rw-r--r-- | arch/powerpc/include/asm/hw_breakpoint.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/hw_breakpoint.h b/arch/powerpc/include/asm/hw_breakpoint.h index 90c708e5e7c4..8e7b09703ca4 100644 --- a/arch/powerpc/include/asm/hw_breakpoint.h +++ b/arch/powerpc/include/asm/hw_breakpoint.h | |||
@@ -80,7 +80,8 @@ static inline void hw_breakpoint_disable(void) | |||
80 | brk.address = 0; | 80 | brk.address = 0; |
81 | brk.type = 0; | 81 | brk.type = 0; |
82 | brk.len = 0; | 82 | brk.len = 0; |
83 | __set_breakpoint(&brk); | 83 | if (ppc_breakpoint_available()) |
84 | __set_breakpoint(&brk); | ||
84 | } | 85 | } |
85 | extern void thread_change_pc(struct task_struct *tsk, struct pt_regs *regs); | 86 | extern void thread_change_pc(struct task_struct *tsk, struct pt_regs *regs); |
86 | int hw_breakpoint_handler(struct die_args *args); | 87 | int hw_breakpoint_handler(struct die_args *args); |