The compiler defines __ARC_TLS_REGNO__ as the number of the register used for TLS variables. Use that instead of hard-coding a specific register. Signed-off-by: Keith Packard <keithp@keithp.com>
arch_curr_cpu
get_cpu