summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineet Gupta <Vineet.Gupta1@synopsys.com>2016-11-07 16:31:39 -0800
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-13 13:44:35 +0100
commit17ea4f9622a80cc8717beeefe1371ccbcd501fe3 (patch)
treec27a5c82a37d4543e4d85225cbe0834bfcbb9f4f
parent0ef881ce9568e1c2e98351fdc067bebbc8c4696a (diff)
ARC: introduce explicit support for atomics
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r--extra/Configs/Config.arc8
1 files changed, 8 insertions, 0 deletions
diff --git a/extra/Configs/Config.arc b/extra/Configs/Config.arc
index 0c0bc71ce..c263dbf46 100644
--- a/extra/Configs/Config.arc
+++ b/extra/Configs/Config.arc
@@ -28,6 +28,14 @@ config CONFIG_ARC_CPU_HS
endchoice
+config CONFIG_ARC_HAS_ATOMICS
+ bool "Support for LLOCK/SCOND instructions"
+ default y
+ help
+ LLOCK/SCOND instructions are needed to implement atomic r-m-w
+ Otherwise libc needs kernel assisted atomic cmpxchg available
+ since v4.9 kernel
+
choice
prompt "MMU Page Size"
default CONFIG_ARC_PAGE_SIZE_8K