Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73394322 authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent e484585e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)