Re: Resetting a 405GPr

Jason Thorpe <[email protected]> Tue, 7 Mar 2006 09:44:47 -0800
Newsgroups gmane.os.netbsd.devel.ports
Message-ID <[email protected]>
On Mar 6, 2006, at 9:29 PM, Peter Seebach wrote:

> I've found the following code in the kernel:
>
> _C_LABEL(ppc4xx_reset):
>         mfspr   %r3,SPR_DBCR0
>         oris    %r3,%r13,DBCR0_RST_SYSTEM@h
>         mtspr   SPR_DBCR0,%r3
>         ba      0
>
> This code hangs; not quite consistently, but very often.
>
> I found this in a Linux kernel:
>
> _GLOBAL(abort)
>         mfspr   r13,SPRN_DBCR0
>         oris    r13,r13,DBCR0_RST_SYSTEM@h
>         mtspr   SPRN_DBCR0,r13


Looks to me like whoever copied the IBM reference code for the NetBSD  
port typo'd it.


-- thorpej