This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Update to new generic semaphore algorithm v2
- From: Steve Ellcey <sellcey at imgtec dot com>
- To: Torvald Riegel <triegel at redhat dot com>
- Cc: Carlos O'Donell <carlos at redhat dot com>, GLIBC Devel <libc-alpha at sourceware dot org>
- Date: Thu, 22 Jan 2015 09:46:29 -0800
- Subject: Re: [PATCH] Update to new generic semaphore algorithm v2
- Authentication-results: sourceware.org; auth=none
- References: <1421111716 dot 23151 dot 35 dot camel at triegel dot csb> <1421945655 dot 28889 dot 122 dot camel at ubuntu-sellcey> <1421947149 dot 28889 dot 128 dot camel at ubuntu-sellcey> <1421948277 dot 4572 dot 42 dot camel at triegel dot csb>
- Reply-to: <sellcey at imgtec dot com>
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