linux-mips
[Top] [All Lists]

Re: PATCH: Always use ll/sc for mips

To: ralf@oss.sgi.com
Subject: Re: PATCH: Always use ll/sc for mips
From: Hiroyuki Machida <machida@sm.sony.co.jp>
Date: Thu, 04 Jul 2002 23:14:06 +0900 (JST)
Cc: kevink@mips.com, hjl@lucon.org, linux-mips@oss.sgi.com, libc-alpha@sources.redhat.com
In-reply-to: <20020704155726.A28268@dea.linux-mips.net>
References: <20020702220651.B9566@dea.linux-mips.net> <00d401c22337$7e731580$10eca8c0@grendel> <20020704155726.A28268@dea.linux-mips.net>
Sender: owner-linux-mips@oss.sgi.com


From: Ralf Baechle <ralf@oss.sgi.com>
Subject: Re: PATCH: Always use ll/sc for mips
Date: Thu, 4 Jul 2002 15:57:26 +0200

> No, Sony's ABI isn't MP proof and will break silently on MP systems.  As
> such I can't consider it anything else but a hack.  sysmips(MIPS_ATOMIC_SET,
> ...) and ll/sc however are MP proof.

We can support MP with few modifications.  

On MP system, the pseudo-device will provide ll/sc if CPU support
it. Otherwise, the pseudo-device will be failed to open. In this
case, sysmips() will be used as last resort in libc.

---
Hiroyuki Machida
Sony Corp.


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