aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/include/asm/hw_breakpoint.h3
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}
85extern void thread_change_pc(struct task_struct *tsk, struct pt_regs *regs); 86extern void thread_change_pc(struct task_struct *tsk, struct pt_regs *regs);
86int hw_breakpoint_handler(struct die_args *args); 87int hw_breakpoint_handler(struct die_args *args);