Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/regress/sys/kern/ras



On Wednesday 07 January 2004 7:30 am, Martin Husemann wrote:
> On Tue, Jan 06, 2004 at 08:37:41PM -0800, Jason Thorpe wrote:
> > Using:
> >
> >     __asm __volatile("":::"memory");
> >
> > on both sides of the RAS ought to be enough, if the RAS doesn't
> > operate on any locals.
> 
> Should we turn that into a macro to stay gcc-neutral?

I've been meaning to commit just such a macro <sys/cdefs.h> to fix a 
similar issue elsewhere. Something along the lines of:

#define __reorder_barrier()     __asm __volatile("":::"memory")

If there are no objections, I'll go ahead and do this.

Cheers, Steve




Home | Main Index | Thread Index | Old Index