Re: [KGDB PATCH][5/7] Fix ppc32 hooks.

Amit S. Kale
2004-03-01T12:32:16Z

Ok to checkin.

-Amit

On Saturday 28 Feb 2004 3:16 am, Tom Rini wrote:
> Hello. The following removes the only PPC32 CHK_DEBUGGER statement,
> as we've always been making kgdb take over the various debugger pointers.
>
> diff -zrupN linux-2.6.3+config+serial/arch/ppc/mm/fault.c
> linux-2.6.3+config+serial+sysrq+arch_hooks/arch/ppc/mm/fault.c ---
> linux-2.6.3+config+serial/arch/ppc/mm/fault.c 2004-02-27 12:16:13.000000000
> -0700 +++
> linux-2.6.3+config+serial+sysrq+arch_hooks/arch/ppc/mm/fault.c 2004-02-27
> 12:16:14.000000000 -0700 @@ -351,13 +351,11 @@ bad_page_fault(struct
> pt_regs *regs, uns
> }
>
> /* kernel has accessed a bad area */
> -#if defined(CONFIG_XMON)
> +#if defined(CONFIG_XMON) || defined(CONFIG_KGDB)
> if (debugger_kernel_faults)
> debugger(regs);
> #endif
>
> - CHK_DEBUGGER(14, sig,0, regs,)
> -
> die("kernel access of bad area", regs, sig);
> }