uclibc: arc: Disable usage of atomic ops if hardware has no LLSC

Submitted by Alexey Brodkin on April 19, 2017, 5:48 p.m.


Message ID 20170419174857.23185-1-abrodkin@synopsys.com
State Accepted
Headers show

Commit Message

Alexey Brodkin April 19, 2017, 5:48 p.m.
Since uClibc-ng v1.0.20 we may force libc to either use llock/scond
instructions for atomic ops or if those are missing use kernel-assisted
emulation. By defult atomics are used so we disable that feature in libc
if we build for target without LLSC.

This allows us to build and use NPTL on ARC750 for example which was
not possible before.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
 package/uclibc/uclibc.mk | 7 +++++++
 1 file changed, 7 insertions(+)


Thomas Petazzoni May 4, 2017, 8:54 p.m.

On Wed, 19 Apr 2017 20:48:57 +0300, Alexey Brodkin wrote:

> +ifneq ($(BR2_ARC_ATOMIC_EXT),y)

Changed to:

ifeq ($(BR2_ARC_ATOMIC_EXT),)

and applied. Thanks!


Patch hide | download patch | download mbox

diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk
index 45bb6dede..ce7f23f25 100644
--- a/package/uclibc/uclibc.mk
+++ b/package/uclibc/uclibc.mk
@@ -101,6 +101,12 @@  define UCLIBC_ARC_PAGE_SIZE_CONFIG
+ifneq ($(BR2_ARC_ATOMIC_EXT),y)
 endif # arc
@@ -395,6 +401,7 @@  define UCLIBC_KCONFIG_FIXUP_CMDS