summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/r4k_switch.S
diff options
context:
space:
mode:
authorHarald Koerfgen <hkoerfg@web.de>1999-05-01 10:08:18 +0000
committerHarald Koerfgen <hkoerfg@web.de>1999-05-01 10:08:18 +0000
commit94f05bab9bf52258637e467fd89ae4f168736f4a (patch)
tree5d086ca4de449e2e2146171d274f1a5c8a722e39 /arch/mips/kernel/r4k_switch.S
parent22ee0f26ee9026be3ef67b9229ebfab26e1f6fb0 (diff)
The CPO_STATUS interrupt mask patch
Diffstat (limited to 'arch/mips/kernel/r4k_switch.S')
-rw-r--r--arch/mips/kernel/r4k_switch.S10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/mips/kernel/r4k_switch.S b/arch/mips/kernel/r4k_switch.S
index e8bc524a4..a4cdfdd24 100644
--- a/arch/mips/kernel/r4k_switch.S
+++ b/arch/mips/kernel/r4k_switch.S
@@ -1,4 +1,4 @@
-/* $Id: r4k_switch.S,v 1.3 1998/04/05 11:23:52 ralf Exp $
+/* $Id: r4k_switch.S,v 1.4 1998/07/16 19:10:02 ralf Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
@@ -41,8 +41,14 @@
CPU_RESTORE_NONSCRATCH($28)
addiu t0, $28, KERNEL_STACK_SIZE-32
sw t0, kernelsp
- lw a3, TASK_MM($28)
+ mfc0 t1, CP0_STATUS /* Do we really need this? */
+ li a3, 0xff00
+ and t1, a3
lw a2, THREAD_STATUS($28)
+ nor a3, $0, a3
+ and a2, a3
+ lw a3, TASK_MM($28)
+ or a2, t1
lw a3, MM_CONTEXT(a3)
mtc0 a2, CP0_STATUS
andi a3, a3, 0xff