[cacao] RFC: CACAO PR157 ARM memory barrier patch

Andrew Haley aph at redhat.com
Fri Mar 11 07:55:13 PST 2011


On 03/11/2011 03:48 PM, Robert Lougher wrote:
> 
> This is how I define MBARRIER for ARM in JamVM:
> 
> #ifdef __ARM_ARCH_7A__
> #define MBARRIER() __asm__ __volatile__ ("dmb" ::: "memory")
> #else
> #define MBARRIER() __asm__ __volatile__ ("" ::: "memory")
> #endif

But that's wrong for GNU/Linux binaries, surely.

Andrew.



More information about the distro-pkg-dev mailing list