fix arm thread-pointer/atomic asm when compiling to thumb code
armv7/thumb2 provides a way to do atomics in thumb mode, but for armv6 we need a call to arm mode. this commit is based on a patch by Stephen Thomas which fixed the armv7 cases but not the armv6 ones. all of this should be revisited if/when runtime selection of thread pointer access and atomics are added.
This commit is contained in:
parent
468bc11ed0
commit
e783efa6ef
2 changed files with 7 additions and 6 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#if __ARM_ARCH_6K__ || __ARM_ARCH_6ZK__ \
|
||||
|| __ARM_ARCH_7A__ || __ARM_ARCH_7R__ \
|
||||
|| __ARM_ARCH >= 7
|
||||
#if ((__ARM_ARCH_6K__ || __ARM_ARCH_6ZK__) && !__thumb__) \
|
||||
|| __ARM_ARCH_7A__ || __ARM_ARCH_7R__ || __ARM_ARCH >= 7
|
||||
|
||||
static inline __attribute__((const)) pthread_t __pthread_self()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue