Subject: Re: Resetting a 405GPr
To: Peter Seebach <seebs@plethora.net>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-ports
Date: 03/07/2006 09:44:47
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