summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-08-30 18:38:37 +0000
committermarcel <marcel@FreeBSD.org>2008-08-30 18:38:37 +0000
commit7cf0ef569d44755b354923b4166e2c34bdac7ec4 (patch)
treeb8527c93e865786f983e3813fb9d99e4848b2e04 /sys/powerpc
parent906dabe5adee55ce09ae5c66ac4698a5afab9f1d (diff)
downloadFreeBSD-src-7cf0ef569d44755b354923b4166e2c34bdac7ec4.zip
FreeBSD-src-7cf0ef569d44755b354923b4166e2c34bdac7ec4.tar.gz
Add powerpc_sync() as an inline function.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/include/cpufunc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h
index 6928fc3..189befd 100644
--- a/sys/powerpc/include/cpufunc.h
+++ b/sys/powerpc/include/cpufunc.h
@@ -129,6 +129,13 @@ isync(void)
__asm __volatile ("isync");
}
+static __inline void
+powerpc_sync(void)
+{
+
+ __asm __volatile ("sync");
+}
+
static __inline register_t
intr_disable(void)
{
OpenPOWER on IntegriCloud