summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-09-23 21:49:58 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-09-23 21:49:58 +0100
commit73394322a4bf4108847ba3c2eee33a81b1b44450 (patch)
tree8f87725077eb63534d5ec0ccad118ab71f954a0c /arch/arm
parente484585ec3ee66cd07a627d3a9e2364640a3807f (diff)
downloadlinux-3.10-73394322a4bf4108847ba3c2eee33a81b1b44450.tar.gz
linux-3.10-73394322a4bf4108847ba3c2eee33a81b1b44450.tar.bz2
linux-3.10-73394322a4bf4108847ba3c2eee33a81b1b44450.zip
[ARM] Fix context switch with ARMv6 + TLS
We accidentally corrupted the TLS value when clearing out the ARMv6 exclusive monitor. Avoid doing so. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/kernel/entry-armv.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S
index 7152bfbee58..93b5e8e5292 100644
--- a/arch/arm/kernel/entry-armv.S
+++ b/arch/arm/kernel/entry-armv.S
@@ -537,7 +537,7 @@ ENTRY(__switch_to)
#ifdef CONFIG_CPU_MPCORE
clrex
#else
- strex r3, r4, [ip] @ Clear exclusive monitor
+ strex r5, r4, [ip] @ Clear exclusive monitor
#endif
#endif
#if defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_IWMMXT)