[haiku-commits] Re: haiku: hrev46918 - in src/system: libroot/os/arch/arm kernel

  • From: Pawel Dziepak <pdziepak@xxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 23 Feb 2014 19:54:32 +0100

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

Does __sync_synchronize() really need to be anything more than a
simple compiler-only barrier on ARMv5 and older?

> +FUNCTION(__sync_synchronize):
> +       dmb
> +       bx lr
> +FUNCTION_END(__sync_synchronize)

I don't think that dmb is available on all ARMv6 processors (namely, ARM11).

Paweł

Other related posts: