[PATCH] atomicity for mips patch

Jason R Thorpe thorpej@wasabisystems.com
Wed Jul 3 11:22:00 GMT 2002


On Wed, Jul 03, 2002 at 02:12:08PM -0400, Paul Koning wrote:

 > I'm not sure how to answer that.  One example is an OS which supports
 > MIPS-1 platforms so it cannot in general count on ll/sc, but we're
 > running that same on a platform that does have ll/sc so it makes sense
 > to enable it through an explicit override (not based on the os name or
 > the like in the target string).

I, too, see the value in being able to say "even though there is no
OS match for this, enable it anyway".

In the case of NetBSD, for example, the NetBSD kernel does not yet
emulate ll/sc on CPUs which do not have it (I'm planning on adding
that emulation soon -- probably while I'm stuck in an airplane this
weekend).

It would be useful to be able to say "it's okay to use it on NetBSD
because I know I'm only ever going to run it on an R4400-based system".

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>



More information about the Gcc-patches mailing list