]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: add support for TLS
authorChris Zankel <chris@zankel.net>
Sun, 24 Feb 2013 03:35:57 +0000 (19:35 -0800)
committerChris Zankel <chris@zankel.net>
Sun, 24 Feb 2013 03:35:57 +0000 (19:35 -0800)
commit4341913024058d63301aba69312c4720d5a91ef2
treed2933b4d9641067002ba6d662b0abf6ee3011375
parentb676d2a995eea4e07ba68513d18b315558801033
xtensa: add support for TLS

The Xtensa architecture provides a global register called THREADPTR
for the purpose of Thread Local Storage (TLS) support. This allows us
to use a fairly simple implementation, keeping the thread pointer in
the regset and simply saving and restoring it upon entering/exiting
the from user space.

Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/include/asm/elf.h
arch/xtensa/include/asm/ptrace.h
arch/xtensa/kernel/asm-offsets.c
arch/xtensa/kernel/entry.S
arch/xtensa/kernel/process.c
arch/xtensa/kernel/ptrace.c
arch/xtensa/kernel/signal.c