Add "memory" clobber to mtpr for barrier. See also kern/38637.
This commit is contained in:
parent
f3c29cad43
commit
033728692b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue