This is the mail archive of the
mailing list for the glibc project.
Re: arm, hppa, m68k, sh, nios maintainers: Please check your emulation of atomic operations
- From: Torvald Riegel <triegel at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, "Carlos O'Donell" <carlos at redhat dot com>, Chung-Lin Tang <chunglin_tang at mentor dot com>, GLIBC Devel <libc-alpha at sourceware dot org>
- Date: Fri, 11 Nov 2016 08:40:32 -0800
- Subject: Re: arm, hppa, m68k, sh, nios maintainers: Please check your emulation of atomic operations
- Authentication-results: sourceware.org; auth=none
- References: <email@example.com> <firstname.lastname@example.org>
On Fri, 2016-11-11 at 10:11 +0100, Andreas Schwab wrote:
> m68k is UP-only, so it requires only interrupt-safety which a simple
> store already provides.
The point is not that a simple store could be interrupted. In a UP
scenario, the risk is that the CAS emulation gets interrupted between
the load and the store that will be part of it. If you avoid that,
you're good. If not, you need to either ensure that or route
atomic_store_ through CAS.