diff options
Diffstat (limited to 'sys/i386/include/cpufunc.h')
-rw-r--r-- | sys/i386/include/cpufunc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h index 41e1bd7..9fd475e 100644 --- a/sys/i386/include/cpufunc.h +++ b/sys/i386/include/cpufunc.h @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cpufunc.h,v 1.68 1997/05/31 09:13:03 peter Exp $ + * $Id: cpufunc.h,v 1.69 1997/07/17 04:33:46 dyson Exp $ */ /* @@ -43,6 +43,9 @@ #include <sys/cdefs.h> #include <sys/types.h> +#include <machine/lock.h> + + #ifdef __GNUC__ static __inline void @@ -55,11 +58,13 @@ static __inline void disable_intr(void) { __asm __volatile("cli" : : : "memory"); + MPINTR_LOCK(); } static __inline void enable_intr(void) { + MPINTR_UNLOCK(); __asm __volatile("sti"); } |