Deleted Added
full compact
31c31
< __FBSDID("$FreeBSD: head/sys/powerpc/mpc85xx/mpc85xx.c 178596 2008-04-26 17:57:29Z raj $");
---
> __FBSDID("$FreeBSD: head/sys/powerpc/mpc85xx/mpc85xx.c 178597 2008-04-26 18:03:00Z raj $");
35a36,38
> #include <vm/vm.h>
> #include <vm/vm_param.h>
>
37a41
> #include <machine/pio.h>
39a44,45
> #include <powerpc/mpc85xx/ocpbus.h>
>
46a53
> uint32_t svr = mfsvr();
48,50c55,61
< /* Clear DBCR0, disables debug interrupts and events. */
< mtspr(SPR_DBCR0, 0);
< __asm volatile("isync");
---
> if (svr == SVR_MPC8572E || svr == SVR_MPC8572)
> /* Systems with dedicated reset register */
> out32(OCP85XX_RSTCR, 2);
> else {
> /* Clear DBCR0, disables debug interrupts and events. */
> mtspr(SPR_DBCR0, 0);
> __asm volatile("isync");
52,53c63,64
< /* Enable Debug Interrupts in MSR. */
< mtmsr(mfmsr() | PSL_DE);
---
> /* Enable Debug Interrupts in MSR. */
> mtmsr(mfmsr() | PSL_DE);
55,56c66,69
< /* Enable debug interrupts and issue reset. */
< mtspr(SPR_DBCR0, mfspr(SPR_DBCR0) | DBCR0_IDM | DBCR0_RST_SYSTEM);
---
> /* Enable debug interrupts and issue reset. */
> mtspr(SPR_DBCR0, mfspr(SPR_DBCR0) | DBCR0_IDM | DBCR0_RST_SYSTEM);
> }
>