5 .macro set_tls_none, tp,
tmp1, tmp2
8 .macro set_tls_v6k, tp,
tmp1, tmp2
9 mcr p15, 0, \tp, c13, c0, 3 @
set TLS
register
11 mcr p15, 0, \tmp1, c13, c0, 2 @
clear user r/
w TLS
register
14 .macro set_tls_v6, tp,
tmp1, tmp2
17 mov \tmp2, #0xffff0fff
19 mcrne p15, 0, \tp, c13, c0, 3 @
yes,
set TLS
register
21 mcrne p15, 0, \tmp1, c13, c0, 2 @
clear user r/
w TLS
register
22 streq \tp, [\tmp2, #-15] @
set TLS
value at 0xffff0ff0
25 .macro set_tls_software, tp,
tmp1, tmp2
27 str \tp, [\tmp1, #-15] @
set TLS
value at 0xffff0ff0
31 #ifdef CONFIG_TLS_REG_EMUL
34 #define set_tls set_tls_none
35 #elif defined(CONFIG_CPU_V6)
37 #define has_tls_reg (elf_hwcap & HWCAP_TLS)
38 #define set_tls set_tls_v6
39 #elif defined(CONFIG_CPU_32v6K)
42 #define set_tls set_tls_v6k
46 #define set_tls set_tls_software