[POWERPC] Fix kernel panic in arch_arm_kprobe
authorIonut Nicu <ionut.nicu@freescale.com>
Wed, 5 Mar 2008 16:12:54 +0000 (03:12 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 7 Apr 2008 03:49:19 +0000 (13:49 +1000)
commit221ac329e93fe2a676346af2e98e311251648f69
treefda0c1f9ce619a3f34576a95e94b3385cc154fe3
parent0119536cd314ef95553604208c25bc35581f7f0a
[POWERPC] Fix kernel panic in arch_arm_kprobe

The code in arch_arm_kprobe was trying to set a breakpoint which
resulted in a page fault because the kernel text pages were write
protected.  Disable the write protect when CONFIG_KPROBES is defined.

Signed-off-by: Ionut Nicu <ionut.nicu@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/pgtable-ppc32.h