summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/hw_breakpoint.h
diff options
context:
space:
mode:
authorMichael Neuling2012-09-06 23:24:57 +0200
committerBenjamin Herrenschmidt2012-09-10 01:59:13 +0200
commitcd14457304c9d232267a3a76a2a43f1f791e545d (patch)
treedefabdab4b813faf7bcd083f8670020cf799003c /arch/powerpc/include/asm/hw_breakpoint.h
parentpowerpc: Rework set_dabr so it can take a DABRX value as well (diff)
downloadkernel-qcow2-linux-cd14457304c9d232267a3a76a2a43f1f791e545d.tar.gz
kernel-qcow2-linux-cd14457304c9d232267a3a76a2a43f1f791e545d.tar.xz
kernel-qcow2-linux-cd14457304c9d232267a3a76a2a43f1f791e545d.zip
powerpc: Dynamically calculate the dabrx based on kernel/user/hypervisor
Currently we mark the DABRX to interrupt on all matches (hypervisor/kernel/user and then filter in software. We can be a lot smarter now that we can set the DABRX dynamically. This sets the DABRX based on the flags passed by the user. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/hw_breakpoint.h')
-rw-r--r--arch/powerpc/include/asm/hw_breakpoint.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/hw_breakpoint.h b/arch/powerpc/include/asm/hw_breakpoint.h
index c6f48eb5299c..423424599dad 100644
--- a/arch/powerpc/include/asm/hw_breakpoint.h
+++ b/arch/powerpc/include/asm/hw_breakpoint.h
@@ -28,6 +28,7 @@
struct arch_hw_breakpoint {
unsigned long address;
+ unsigned long dabrx;
int type;
u8 len; /* length of the target data symbol */
bool extraneous_interrupt;