Module Name: src
Committed By: mhitch
Date: Wed May 13 03:40:13 UTC 2009
Modified Files:
src/sys/arch/vax/include: mtpr.h
Log Message:
Add "memory" clobber to mtpr for barrier. See also kern/38637.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/vax/include/mtpr.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/vax/include/mtpr.h
diff -u src/sys/arch/vax/include/mtpr.h:1.20 src/sys/arch/vax/include/mtpr.h:1.21
--- src/sys/arch/vax/include/mtpr.h:1.20 Fri Feb 16 01:34:03 2007
+++ src/sys/arch/vax/include/mtpr.h Wed May 13 03:40:13 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: mtpr.h,v 1.20 2007/02/16 01:34:03 matt Exp $ */
+/* $NetBSD: mtpr.h,v 1.21 2009/05/13 03:40:13 mhitch Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -169,10 +169,11 @@
static inline void
mtpr(register_t val, int reg)
{
- __asm volatile (
+ __asmB volatile (
"mtpr %0,%1"
: /* No output */
- : "g" (val), "g" (reg));
+ : "g" (val), "g" (reg)
+ : "memory");
}
static inline register_t