This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: Use lwsync on 64bit
- From: "Tulio Magno Quites Machado Filho" <tuliom at linux dot vnet dot ibm dot com>
- To: Anton Blanchard <anton at samba dot org>, cseo at linux dot vnet dot ibm dot com
- Cc: libc-alpha at sourceware dot org
- Cc:
- Date: Mon, 13 Feb 2017 11:42:45 -0200
- Subject: Re: [PATCH] powerpc: Use lwsync on 64bit
- Authentication-results: sourceware.org; auth=none
- References: <20170213102220.31ba7d56@kryten>
Anton Blanchard <anton@samba.org> writes:
> Either an isync or an lwsync can be used as an acquire barrier after
> a larx/stcx/bne sequence. All 64bit CPUs support lwsync and since the
> isync instruction has other side effects that we don't need, use lwsync.
>
> 2017-02-12 Anton Blanchard <anton@samba.org>
>
> * sysdeps/powerpc/atomic-machine.h: Allow __ARCH_ACQ_INSTR to be
> overridden.
> * sysdeps/powerpc/powerpc64/atomic-machine.h: define __ARCH_ACQ_INSTR
LGTM.
--
Tulio Magno