[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>
This commit is contained in:
committed by
Russell King
parent
e484585ec3
commit
73394322a4
@@ -537,7 +537,7 @@ ENTRY(__switch_to)
|
|||||||
#ifdef CONFIG_CPU_MPCORE
|
#ifdef CONFIG_CPU_MPCORE
|
||||||
clrex
|
clrex
|
||||||
#else
|
#else
|
||||||
strex r3, r4, [ip] @ Clear exclusive monitor
|
strex r5, r4, [ip] @ Clear exclusive monitor
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_IWMMXT)
|
#if defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_IWMMXT)
|
||||||
|
Reference in New Issue
Block a user