From 1810957e204beb05eec6363315050933b4d19384 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 3 Jan 2008 22:33:50 +0000 Subject: Add an explicit clobber to prevent gcc from reordering instructions around sparc_wrpr(), similar to the psl.h changes years ago; ok kettenis@ --- sys/arch/sparc64/include/ctlreg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc64/include/ctlreg.h') diff --git a/sys/arch/sparc64/include/ctlreg.h b/sys/arch/sparc64/include/ctlreg.h index c8ea062cd3e..41e75f5d2a9 100644 --- a/sys/arch/sparc64/include/ctlreg.h +++ b/sys/arch/sparc64/include/ctlreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ctlreg.h,v 1.13 2007/11/28 20:05:30 kettenis Exp $ */ +/* $OpenBSD: ctlreg.h,v 1.14 2008/01/03 22:33:49 miod Exp $ */ /* $NetBSD: ctlreg.h,v 1.28 2001/08/06 23:55:34 eeh Exp $ */ /* @@ -542,6 +542,7 @@ do { \ else \ __asm __volatile("wrpr %0, %1, %%" #name \ : : "r" (val), "rI" (xor) : "%g0"); \ + __asm __volatile("" : : : "memory"); \ } while(0) -- cgit v1.2.3