linux-mips
[Top] [All Lists]

Re: sti() does not work.

To: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Subject: Re: sti() does not work.
From: "Gleb O. Raiko" <raiko@niisi.msk.ru>
Date: Wed, 04 Jul 2001 16:23:34 +0400
Cc: linux-mips@oss.sgi.com
Organization: NIISI RAN
References: <20010704122329.B30713@rembrandt.csv.ica.uni-stuttgart.de>
Sender: owner-linux-mips@oss.sgi.com
Thiemo Seufer wrote:
> > extern __inline__ void  __sti(void)
> > {
> >       __asm__ __volatile__(
> >               ".set\tnoreorder\n\t"
> >               ".set\tnoat\n\t"
> >               "mfc0\t$1,$12\n\t"
> >               "ori\t$1,0x1f\n\t"
> >               "xori\t$1,0x1e\n\t"
> >               "mtc0\t$1,$12\n\t"               /* <----- problem  here
> > ! */
> 
> Here should follow some nop's on a MIPS I system to make sure $12
> is written (why is noreorder used here?).
> 

Support for r3k in 2.2 is broken for a long time. Use 2.4 instead.

Regards,
Gleb.

<Prev in Thread] Current Thread [Next in Thread>