summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/debug.h
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2018-03-27 07:37:17 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-03-27 15:52:43 +0300
commit404b27d66ed657ebccb08a9c8f8f65523e9b666b (patch)
tree8ec4a5895cc333f47bb7ff4c4ab2c9acedca17f6 /arch/powerpc/include/asm/debug.h
parent681c617b7c42fce0798c2b0b472f270f28c82d56 (diff)
downloadlinux-404b27d66ed657ebccb08a9c8f8f65523e9b666b.tar.xz
powerpc: Add ppc_breakpoint_available()
Add ppc_breakpoint_available() to determine if a breakpoint is available currently via the DAWR or DABR. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/debug.h')
-rw-r--r--arch/powerpc/include/asm/debug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/debug.h b/arch/powerpc/include/asm/debug.h
index fc97404de0a3..ce5da214ffe5 100644
--- a/arch/powerpc/include/asm/debug.h
+++ b/arch/powerpc/include/asm/debug.h
@@ -47,6 +47,7 @@ static inline int debugger_fault_handler(struct pt_regs *regs) { return 0; }
void set_breakpoint(struct arch_hw_breakpoint *brk);
void __set_breakpoint(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,
unsigned long error_code, int brkpt);