From 310427c33e7d4bd3df3c7c5a08499afbac0736df Mon Sep 17 00:00:00 2001 From: neel Date: Wed, 15 Sep 2010 05:10:50 +0000 Subject: Make the meaning of the 'mask' argument to 'set_intr_mask(mask)' consistent with the meaning of IM bits in the status register. Reviewed by: jmallett, jchandra --- sys/mips/include/cpufunc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/mips/include') diff --git a/sys/mips/include/cpufunc.h b/sys/mips/include/cpufunc.h index efaa3f4..a1715c9 100644 --- a/sys/mips/include/cpufunc.h +++ b/sys/mips/include/cpufunc.h @@ -272,7 +272,7 @@ set_intr_mask(uint32_t mask) uint32_t ostatus; ostatus = mips_rd_status(); - mask = (ostatus & ~MIPS_SR_INT_MASK) | (~mask & MIPS_SR_INT_MASK); + mask = (ostatus & ~MIPS_SR_INT_MASK) | (mask & MIPS_SR_INT_MASK); mips_wr_status(mask); return (ostatus); } -- cgit v1.1