* Tony Lindgren <t...@atomide.com> [100621 16:45]:
> The TLS register is only available on ARM1136 r1p0 and later.
> Set HWCAP_TLS flags if hardware TLS is available.
> 
> Note that we now use 0xffff0ff4 for flagging software TLS to
> __kuser_get_tls, and 0xffff0ff8 for storing the software TLS value.

Forgot my own earlier comment to check only for ARM1136, will update
with this patch.

Tony
Check only for 1136.

Signed-off-by: Tony Lindgren <t...@atomide.com>

--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -277,8 +277,8 @@ static void __init feat_v6_fixup(void)
 	if (id & 0x000f0000 != 0x00070000)
 		return;
 
-	/* HWCAP_TLS is available only on V6 r1p0 and later */
-	if (((id >> 20) & 3) == 0)
+	/* HWCAP_TLS is available only on 1136 r1p0 and later */
+	if ((((id >> 4) & 0xfff) == 0xb36) && (((id >> 20) & 3) == 0))
 		elf_hwcap &= ~HWCAP_TLS;
 }
 #else

Reply via email to