| To: | Thomas Bogendoerfer <tsbogend@alpha.franken.de> |
|---|---|
| Subject: | Re: Tester with IP27/IP30 needed |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Thu, 17 Jan 2008 11:59:38 +0000 |
| Cc: | Florian Lohoff <flo@rfc822.org>, linux-mips@linux-mips.org, debian-mips@lists.debian.org |
| In-reply-to: | <20080117004054.GA12051@alpha.franken.de> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20080115112420.GA7347@alpha.franken.de> <20080115112719.GB7920@paradigm.rfc822.org> <20080117004054.GA12051@alpha.franken.de> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.17 (2007-11-01) |
On Thu, Jan 17, 2008 at 01:40:54AM +0100, Thomas Bogendoerfer wrote:
> ----------------------------------------------------------------------
> void spin(void *a0)
> {
> while (1) {
> asm volatile(
> " .set mips3 \n"
> " sync \n"
> "1: ll $5, 0($4) \n"
> " sc $3, 0($4) \n"
> " beqz $3, 1b \n"
> " .word 0x7c03e83b \n" /* rdhwr */
> " lw $3, 0($4) \n"
> " nop \n"
> );
> }
> }
>
> int main()
> {
> int a;
>
> spin(&a);
> }
> ----------------------------------------------------------------------
>
> this kills my IP28 after a few seconds. If I drop rdhwr or sync the
> machine hasn't locked up after running for several minutes. Looks
> like we are hiting a strange condition.
SYNC on the R10000 will only graduate if the external signal SyncGblPerf
is asserted. A simple system could simply always set it. I wonder if
that has any affect. Logic analyzer time ...
Ralf
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Tester with IP27/IP30 needed, Thomas Bogendoerfer |
|---|---|
| Next by Date: | Re: Tester with IP27/IP30 needed, Ralf Baechle |
| Previous by Thread: | Re: Tester with IP27/IP30 needed, Thomas Bogendoerfer |
| Next by Thread: | Re: Tester with IP27/IP30 needed, Kumba |
| Indexes: | [Date] [Thread] [Top] [All Lists] |