[PATCH] PPC 4xx: Enable XMON on PPC 4xx boards
Paul Mackerras
paulus at samba.org
Thu Sep 7 08:55:41 EST 2006
Josh Boyer writes:
> - excp->msr |= 0x400;
> + excp->msr |= MSR_SSTEP_ENABLE;
> +#ifdef CONFIG_4xx
> + mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM);
> +#endif
> } else if (at_breakpoint(excp->nip)) {
> xmon_trace[smp_processor_id()] = BRSTEP;
> - excp->msr |= 0x400;
> + excp->msr |= MSR_SSTEP_ENABLE;
> +#ifdef CONFIG_4xx
> + mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM);
> +#endif
This would be neater with a little inline xmon_enable_sstep(excp)
function...
Other than that, looks fine.
Paul.
More information about the Linuxppc-dev
mailing list