powerpc: Dynamically calculate the dabrx based on kernel/user/hypervisor
authorMichael Neuling <mikey@neuling.org>
Thu, 6 Sep 2012 21:24:57 +0000 (21:24 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 9 Sep 2012 23:59:13 +0000 (09:59 +1000)
commitcd14457304c9d232267a3a76a2a43f1f791e545d
treedefabdab4b813faf7bcd083f8670020cf799003c
parent4474ef055c5d8cb8eaf002d69e49af71e3aa3a88
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>
arch/powerpc/include/asm/hw_breakpoint.h
arch/powerpc/kernel/hw_breakpoint.c
arch/powerpc/platforms/pseries/setup.c