Subject: Re: CVS commit: src/regress/sys/kern/ras
To: Martin Husemann <martin@duskware.de>
From: Steve Woodford <scw@netbsd.org>
List: source-changes
Date: 01/07/2004 11:21:13
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