This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Update to new generic semaphore algorithm v2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]