Subject: Re: CVS commit: src/regress/sys/kern/ras
To: Steve Woodford <scw@netbsd.org>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: source-changes
Date: 01/07/2004 08:17:09
--Apple-Mail-28-695749035
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Jan 7, 2004, at 3:21 AM, Steve Woodford wrote:

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

Since it prevents instruction reordering, I guess __insn_barrier() is 
better.  Provide a means for <machine/cdefs.h> to override it, so SPARC 
can continue using it's no-memory-clobber version.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>


--Apple-Mail-28-695749035
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQE//DEKOpVKkaBm8XkRAhHbAJ9WwLVM2s4MZBABUX3Rm85/IK9d1wCgn9cJ
02cmNQxcmI/DbqYmP44gFAk=
=FUKe
-----END PGP SIGNATURE-----

--Apple-Mail-28-695749035--