summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2012-04-22 21:55:19 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2012-04-22 21:55:19 +0000
commit19e4decf83e6c61d590d19f3bc530a7d5549e48a (patch)
tree303802b9789ac6bbcd7497540549f66b0e728436 /sys/powerpc/include
parent1c56974f7a0b1bec1ffa7ae8f35f90036d98001e (diff)
downloadFreeBSD-src-19e4decf83e6c61d590d19f3bc530a7d5549e48a.zip
FreeBSD-src-19e4decf83e6c61d590d19f3bc530a7d5549e48a.tar.gz
Correctly specify assembler constrains for synchronization instructions.
MFC after: 3 days
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/cpufunc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h
index bb01fdb..c949d53 100644
--- a/sys/powerpc/include/cpufunc.h
+++ b/sys/powerpc/include/cpufunc.h
@@ -166,21 +166,21 @@ static __inline void
eieio(void)
{
- __asm __volatile ("eieio");
+ __asm __volatile ("eieio" : : : "memory");
}
static __inline void
isync(void)
{
- __asm __volatile ("isync");
+ __asm __volatile ("isync" : : : "memory");
}
static __inline void
powerpc_sync(void)
{
- __asm __volatile ("sync");
+ __asm __volatile ("sync" : : : "memory");
}
static __inline register_t
OpenPOWER on IntegriCloud