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:
Adrien Destugues 2014-02-23 16:25:34 +01:00
parent faa2d8a95b
commit 22011f8b6c
1 changed files with 7 additions and 0 deletions

View File

@ -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