[PATCH 1/2] arm: Replace CONFIG_HAS_TLS_REG with HWCAP_TLS and check for it on V6

Tony Lindgren tony at atomide.com
Wed Jun 30 09:17:37 EDT 2010


* Tony Lindgren <tony at atomide.com> [100630 14:02]:
> * Nicolas Pitre <nico at fluxnic.net> [100629 22:14]:
> 
> Updated patch below.

And a bug crept in..

> +	.macro set_tls_v6, tp, tmp1, tmp2
> +	ldr	\tmp1, =elf_hwcap
> +	ldr	\tmp1, [\tmp1, #0]
> +	mov	\tmp2, #0xffff0fff
> +	tst	\tmp2, #HWCAP_TLS		@ hardware TLS available?
> +	mcrne	p15, 0, \tp, c13, c0, 3		@ yes, set TLS register
> +	streq	\tp, [\tmp2, #-15]		@ set TLS value at 0xffff0ff0
> +	.endm

The tst	\tmp2, #HWCAP_TLS should of course use \tmp1.

Also fixed a warning about adding parentheses around comparison
if (id & 0x410f0000) != 0x41070000).

Again, updated patch below.

Tony


More information about the linux-arm-kernel mailing list