powerpc: Fix PPC_PTRACE_SETHWDEBUG on PPC_BOOK3S
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 27 Nov 2010 14:24:53 +0000 (14:24 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 9 Dec 2010 04:35:31 +0000 (15:35 +1100)
commit4dfbf290aeb9d63a058d9d8237203b0b72bfbbe3
tree8619b01893ddc4222738ae2aada3605f56f2bd4a
parent364a1246522f99cbe58040e99af007ada31034ed
powerpc: Fix PPC_PTRACE_SETHWDEBUG on PPC_BOOK3S

Properly set the DABR_TRANSLATION/DABR_DATA_READ/DABR_DATA_READ bits in
the dabr when setting the debug register via PPC_PTRACE_SETHWDEBUG.  Also
don't reject trigger type of PPC_BREAKPOINT_TRIGGER_READ.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/ptrace.c