>>From 5a71decdf73021b70a1a45087ad6e5abba81cce8 Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Wed, 28 Apr 2010 18:39:19 -0400 Subject: [PATCH] kgdb: don't needlessly skip PAGE_USER test Part of commit 8d1cf34e7ad5c7738ce20d20bd7f002f562cb8b5, present in 2.6.30-rc1 and newer kernels deletes this needless KGDB specific skipping of the _PAGE_USER test. The bypassing of this test is a leftover from 2.4 vintage kernels, and is no longer appropriate, or even used by KGDB. Currently KGDB uses probe_kernel_write() for all access to memory via the KGDB core. Signed-off-by: Paul Gortmaker Signed-off-by: Jason Wessel --- arch/powerpc/mm/ppc_mmu_32.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/ppc_mmu_32.c b/arch/powerpc/mm/ppc_mmu_32.c index 49b195e..abedf35 100644 --- a/arch/powerpc/mm/ppc_mmu_32.c +++ b/arch/powerpc/mm/ppc_mmu_32.c @@ -136,9 +136,7 @@ void __init setbat(int index, unsigned long virt, phys_addr_t phys, wimgxpp |= (flags & _PAGE_RW)? BPP_RW: BPP_RX; bat[1].batu = virt | (bl << 2) | 2; /* Vs=1, Vp=0 */ bat[1].batl = BAT_PHYS_ADDR(phys) | wimgxpp; -#ifndef CONFIG_KGDB /* want user access for breakpoints */ if (flags & _PAGE_USER) -#endif bat[1].batu |= 1; /* Vp = 1 */ if (flags & _PAGE_GUARDED) { /* G bit must be zero in IBATs */ -- 1.6.5.2