summaryrefslogtreecommitdiffstats
path: root/sys/mips/include/cpufunc.h
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2010-09-15 05:10:50 +0000
committerneel <neel@FreeBSD.org>2010-09-15 05:10:50 +0000
commit310427c33e7d4bd3df3c7c5a08499afbac0736df (patch)
tree1961e26f310e8cc87db629c9886a6e7024d7b00b /sys/mips/include/cpufunc.h
parent2773ca57a0a72cdd7d5dcb692cb53f725d7415d5 (diff)
downloadFreeBSD-src-310427c33e7d4bd3df3c7c5a08499afbac0736df.zip
FreeBSD-src-310427c33e7d4bd3df3c7c5a08499afbac0736df.tar.gz
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
Diffstat (limited to 'sys/mips/include/cpufunc.h')
-rw-r--r--sys/mips/include/cpufunc.h2
1 files changed, 1 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud