Memory barriers for PPC

Gary Benson gbenson at redhat.com
Tue Jan 27 02:42:45 PST 2009


Andrew Haley wrote:
> +#ifdef __PPC

Can you make this "#ifdef PPC"?

> +#define READ_MEM_BARRIER __asm __volatile ("":::"memory")
> +#define WRITE_MEM_BARRIER __asm __volatile ("":::"memory")

What's the difference between this and __sync_synchronize()?

Cheers,
Gary

-- 
http://gbenson.net/



More information about the distro-pkg-dev mailing list