diff options
author | benno <benno@FreeBSD.org> | 2002-03-21 12:04:58 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2002-03-21 12:04:58 +0000 |
commit | d99dec6eef97f992c432dad951301e54ab8e7f62 (patch) | |
tree | 12233723b932c5a6998d18be4ecfd2aeaa61a85a /sys/powerpc | |
parent | ba64e54157598a2becfe13c5f334b1bbca251af4 (diff) | |
download | FreeBSD-src-d99dec6eef97f992c432dad951301e54ab8e7f62.zip FreeBSD-src-d99dec6eef97f992c432dad951301e54ab8e7f62.tar.gz |
GC some unused, bogus interrupt functions and replace them with proper
implementations of intr_disable and intr_restore.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/cpufunc.h | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h index 282c9c4..1fabff7 100644 --- a/sys/powerpc/include/cpufunc.h +++ b/sys/powerpc/include/cpufunc.h @@ -84,35 +84,21 @@ mfdec(void) return (value); } -/* - * Bogus interrupt manipulation - */ -static __inline void -disable_intr(void) +static __inline register_t +intr_disable(void) { - unsigned int msr; + register_t msr; msr = mfmsr(); mtmsr(msr & ~(PSL_EE|PSL_RI)); + return (msr); } static __inline void -enable_intr(void) +intr_restore(register_t msr) { - unsigned int msr; - - msr = mfmsr(); - mtmsr(msr | PSL_EE | PSL_RI); -} -static __inline unsigned int -save_intr(void) -{ - unsigned int msr; - - msr = mfmsr(); - - return msr; + mtmsr(msr); } static __inline critical_t |