[PATCH] Update to new generic semaphore algorithm v2

Steve Ellcey sellcey@imgtec.com
Thu Jan 22 17:46:00 GMT 2015


On Thu, 2015-01-22 at 18:37 +0100, Torvald Riegel wrote:

> Does the N32 ABI have atomic operations for 64b operands?  If not, it
> shouldn't claim that, and atomic.h should be adapted.  This would fix
> the semaphore issue too, because then we don't assume 64b and LP64
> anymore.

The N32 ABI does have atomic operations for 64b types (as well as 32b
types).

> IIRC mips atomic.h did define 64b ops unless _MIPS_SIM == _ABIO32 in the
> past.  So this looks like an existing issue in the mips atomic ops
> that's just exposed by the semaphore.
> 
> However, I might also be wrong in assuming that having 64b atomics
> automatically means having LP64 too.

I think this is the problem.  the N32 ABI is an ILP32 model that only
runs on systems with 64 bit registers.

Steve Ellcey
sellcey@imgtec.com



More information about the Libc-alpha mailing list