summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-05-21 16:10:39 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-05-21 16:10:39 +0000
commitdbf89fc6a16e2caf29ab2e317296534685be66e6 (patch)
tree7a5f8e46af14005b2c2ddac0558e0e0aa3b1e2d7 /sys
parentf9a1f1a2b8c78c8abe9d52572a2b557284a10f86 (diff)
Make sure cpu_switchto() returns to the new proc with interrupts enabled (this
is bandaid until interrupt handling is made more sane.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mips64/mips64/context.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/mips64/mips64/context.S b/sys/arch/mips64/mips64/context.S
index eb9de21acec..502d36a7f15 100644
--- a/sys/arch/mips64/mips64/context.S
+++ b/sys/arch/mips64/mips64/context.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: context.S,v 1.20 2008/07/28 19:08:46 miod Exp $ */
+/* $OpenBSD: context.S,v 1.21 2009/05/21 16:10:38 miod Exp $ */
/*
* Copyright (c) 2002-2003 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -279,6 +279,7 @@ ctx3:
#ifndef IMASK_EXTERNAL
ctc0 v1, COP_0_ICR # XXX RM7000
#endif
+ ori v0, v0, SR_INT_ENAB
mtc0 v0, COP_0_STATUS_REG
ITLBNOPFIX
j ra