toolchain: Add config option for atomic intrinsics
authorAnton Kolesov <anton.kolesov@synopsys.com>
Thu, 31 Jul 2014 13:24:42 +0000 (17:24 +0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 3 Aug 2014 09:20:47 +0000 (11:20 +0200)
commitcbffd50561f7ce595296bddaf108031e501b2063
tree9a2a41c311852e692e43ca1afba17446d94fe1e2
parent21205fced532ff875b32e9492e67e0a1908598d5
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>
arch/Config.in.arc
package/Makefile.in
toolchain/toolchain-common.in