summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-08-16 10:13:34 +0000
committerobrien <obrien@FreeBSD.org>2001-08-16 10:13:34 +0000
commit7797d96f52155880047657892cf69a65d0888b88 (patch)
treea4ca1f871a057f8042a3310fa93540c5b71058d8 /sys
parent358f773cec56d6c2efccc594d09099db6ac1665e (diff)
downloadFreeBSD-src-7797d96f52155880047657892cf69a65d0888b88.zip
FreeBSD-src-7797d96f52155880047657892cf69a65d0888b88.tar.gz
Minor style(9)'ing
Diffstat (limited to 'sys')
-rw-r--r--sys/powerpc/include/cpufunc.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h
index 829653f..c2f9332 100644
--- a/sys/powerpc/include/cpufunc.h
+++ b/sys/powerpc/include/cpufunc.h
@@ -40,6 +40,7 @@
static __inline void
breakpoint(void)
{
+
return;
}
@@ -50,6 +51,7 @@ breakpoint(void)
static __inline void
mtmsr(unsigned int value)
{
+
__asm __volatile ("mtmsr %0" :: "r"(value));
}
@@ -66,6 +68,7 @@ mfmsr(void)
static __inline void
mtdec(unsigned int value)
{
+
__asm __volatile ("mtdec %0" :: "r"(value));
}
@@ -113,29 +116,33 @@ save_intr(void)
static __inline critical_t
critical_enter(void)
{
+
return ((critical_t)save_intr());
}
static __inline void
restore_intr(unsigned int msr)
{
+
mtmsr(msr);
}
static __inline void
critical_exit(critical_t msr)
{
+
return (restore_intr((unsigned int)msr));
}
static __inline void
powerpc_mb(void)
{
+
__asm __volatile("eieio; sync" : : : "memory");
}
-static __inline struct globaldata
-*powerpc_get_globalp(void)
+static __inline struct globaldata *
+powerpc_get_globalp(void)
{
struct globaldata *ret;
OpenPOWER on IntegriCloud