aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/debug.h
diff options
context:
space:
mode:
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>2020-05-14 16:47:31 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2020-05-19 00:11:04 +1000
commit4a8a9379f2af4c9928529b3959bc2d8f7023c6bc (patch)
tree4d7d53dff1e83ad503e760c54f99a797c9bce236 /arch/powerpc/include/asm/debug.h
parentpowerpc/watchpoint: Provide DAWR number to set_dawr (diff)
downloadlinux-dev-4a8a9379f2af4c9928529b3959bc2d8f7023c6bc.tar.xz
linux-dev-4a8a9379f2af4c9928529b3959bc2d8f7023c6bc.zip
powerpc/watchpoint: Provide DAWR number to __set_breakpoint
Introduce new parameter 'nr' to __set_breakpoint() which indicates which DAWR should be programed. Also convert current_brk variable to an array. Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Reviewed-by: Michael Neuling <mikey@neuling.org> Link: https://lore.kernel.org/r/20200514111741.97993-7-ravi.bangoria@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include/asm/debug.h')
-rw-r--r--arch/powerpc/include/asm/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/debug.h b/arch/powerpc/include/asm/debug.h
index 7756026b95ca..ec57daf87f40 100644
--- a/arch/powerpc/include/asm/debug.h
+++ b/arch/powerpc/include/asm/debug.h
@@ -45,7 +45,7 @@ static inline int debugger_break_match(struct pt_regs *regs) { return 0; }
static inline int debugger_fault_handler(struct pt_regs *regs) { return 0; }
#endif
-void __set_breakpoint(struct arch_hw_breakpoint *brk);
+void __set_breakpoint(int nr, struct arch_hw_breakpoint *brk);
bool ppc_breakpoint_available(void);
#ifdef CONFIG_PPC_ADV_DEBUG_REGS
extern void do_send_trap(struct pt_regs *regs, unsigned long address,