summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/r2300_switch.S
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-04-08 13:24:27 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-04-08 13:24:27 +0000
commitb3874975097055d9c6cd059372751a44374e4c3a (patch)
treebff1fee2a6f69cdc45dd6efbef9882408f6d7aa4 /arch/mips/kernel/r2300_switch.S
parent986608d5047c413481b0b2db2f54426210e27810 (diff)
Fix ll/sc emulation. Extracted from Linux-VR tree by Harald.
Diffstat (limited to 'arch/mips/kernel/r2300_switch.S')
-rw-r--r--arch/mips/kernel/r2300_switch.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/r2300_switch.S b/arch/mips/kernel/r2300_switch.S
index 4a546ebb5..a17873ab5 100644
--- a/arch/mips/kernel/r2300_switch.S
+++ b/arch/mips/kernel/r2300_switch.S
@@ -34,6 +34,9 @@
* task_struct *next)
*/
LEAF(resume)
+#ifndef CONFIG_CPU_HAS_LLSC
+ sw zero, ll_bit
+#endif
mfc0 t1, CP0_STATUS
sw t1, THREAD_STATUS(a0)
CPU_SAVE_NONSCRATCH(a0)