summaryrefslogtreecommitdiff
path: root/toolchain/toolchain-common.in
diff options
context:
space:
mode:
authorAnton Kolesov <anton.kolesov@synopsys.com>2014-07-31 17:24:42 +0400
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-08-03 11:20:47 +0200
commitcbffd50561f7ce595296bddaf108031e501b2063 (patch)
tree9a2a41c311852e692e43ca1afba17446d94fe1e2 /toolchain/toolchain-common.in
parent21205fced532ff875b32e9492e67e0a1908598d5 (diff)
toolchain: Add config option for atomic intrinsics
GCC has several builtin functions that implement atomic operations. Those functions are architecture specific and may not be implemented by the specific toolchain. In case of GCC for ARC those functions rely on LLOCK/SCOND instructions which are optional in ARC CPU's. If ARC CPU doesn't support those instructions but software tries to use them, then application will be aborted with Illegal instruction exception. To avoid confusion user should first specify that their CPU supports atomic extension, which will allow selection of packages that use builtin atomic functions. Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'toolchain/toolchain-common.in')
-rw-r--r--toolchain/toolchain-common.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index 2df8ddb63..48ba8400c 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -44,6 +44,10 @@ config BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
config BR2_TOOLCHAIN_HAS_SSP
bool
+config BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
+ bool
+ default y if !BR2_arc
+
config BR2_ENABLE_LOCALE_PURGE
bool "Purge unwanted locales"
help