diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2001-08-16 10:13:34 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-08-16 10:13:34 +0000 |
commit | a6b989ffbf18caa2e306190305b31ded56f0d59b (patch) | |
tree | a4ca1f871a057f8042a3310fa93540c5b71058d8 /sys/powerpc/include/cpufunc.h | |
parent | 589278dbaeaa80850097b35d25e4f3f9ba0c6921 (diff) | |
download | src-a6b989ffbf18caa2e306190305b31ded56f0d59b.tar.gz src-a6b989ffbf18caa2e306190305b31ded56f0d59b.zip |
Minor style(9)'ing
Notes
Notes:
svn path=/head/; revision=81766
Diffstat (limited to 'sys/powerpc/include/cpufunc.h')
-rw-r--r-- | sys/powerpc/include/cpufunc.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h index 829653f60bd4..c2f9332ad9b7 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; |