diff options
author | marcel <marcel@FreeBSD.org> | 2008-08-30 18:38:37 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-08-30 18:38:37 +0000 |
commit | 7cf0ef569d44755b354923b4166e2c34bdac7ec4 (patch) | |
tree | b8527c93e865786f983e3813fb9d99e4848b2e04 | |
parent | 906dabe5adee55ce09ae5c66ac4698a5afab9f1d (diff) | |
download | FreeBSD-src-7cf0ef569d44755b354923b4166e2c34bdac7ec4.zip FreeBSD-src-7cf0ef569d44755b354923b4166e2c34bdac7ec4.tar.gz |
Add powerpc_sync() as an inline function.
-rw-r--r-- | sys/powerpc/include/cpufunc.h | 7 |
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) { |