ARM Atomics: implement __sync_syncronize
GCC doesn't provide an ARM implementation of it. It's easy to write one for ARMv6 and above, while older archs will need this implemented as a syscall just like other atomics.
This commit is contained in:
@@ -88,6 +88,13 @@ FUNCTION(atomic_get):
|
|||||||
bx lr
|
bx lr
|
||||||
FUNCTION_END(atomic_get)
|
FUNCTION_END(atomic_get)
|
||||||
|
|
||||||
|
/* void __sync_synchronize(void)
|
||||||
|
*/
|
||||||
|
FUNCTION(__sync_synchronize):
|
||||||
|
dmb
|
||||||
|
bx lr
|
||||||
|
FUNCTION_END(__sync_synchronize)
|
||||||
|
|
||||||
#endif /* ATOMIC_FUNCS_ARE_SYSCALLS */
|
#endif /* ATOMIC_FUNCS_ARE_SYSCALLS */
|
||||||
|
|
||||||
#ifndef ATOMIC64_FUNCS_ARE_SYSCALLS
|
#ifndef ATOMIC64_FUNCS_ARE_SYSCALLS
|
||||||
|
|||||||
Reference in New Issue
Block a user