summaryrefslogtreecommitdiffstats
path: root/sys/mips/mips/machdep.c
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2010-01-20 14:17:41 +0000
committerneel <neel@FreeBSD.org>2010-01-20 14:17:41 +0000
commitb3c30e3c1e032942db48ca992ef826cf2b6b5eab (patch)
treec764406ff81275b2216d7c473cf00dcc0db00e04 /sys/mips/mips/machdep.c
parent9bd3933525366234945bf03795afbfd5e340fb1d (diff)
downloadFreeBSD-src-b3c30e3c1e032942db48ca992ef826cf2b6b5eab.zip
FreeBSD-src-b3c30e3c1e032942db48ca992ef826cf2b6b5eab.tar.gz
Make sure that interrupts are enabled when thread0 is running.
Approved by: imp (mentor)
Diffstat (limited to 'sys/mips/mips/machdep.c')
-rw-r--r--sys/mips/mips/machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c
index 65b4cfb..6df7cc5 100644
--- a/sys/mips/mips/machdep.c
+++ b/sys/mips/mips/machdep.c
@@ -351,7 +351,9 @@ mips_vector_init(void)
* Mask all interrupts. Each interrupt will be enabled
* when handler is installed for it
*/
- set_intr_mask (ALL_INT_MASK);
+ set_intr_mask(ALL_INT_MASK);
+ enableintr();
+
/* Clear BEV in SR so we start handling our own exceptions */
mips_cp0_status_write(mips_cp0_status_read() & ~SR_BOOT_EXC_VEC);
OpenPOWER on IntegriCloud