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:
parent
faa2d8a95b
commit
22011f8b6c
@ -88,6 +88,13 @@ FUNCTION(atomic_get):
|
||||
bx lr
|
||||
FUNCTION_END(atomic_get)
|
||||
|
||||
/* void __sync_synchronize(void)
|
||||
*/
|
||||
FUNCTION(__sync_synchronize):
|
||||
dmb
|
||||
bx lr
|
||||
FUNCTION_END(__sync_synchronize)
|
||||
|
||||
#endif /* ATOMIC_FUNCS_ARE_SYSCALLS */
|
||||
|
||||
#ifndef ATOMIC64_FUNCS_ARE_SYSCALLS
|
||||
|
Loading…
Reference in New Issue
Block a user