summaryrefslogtreecommitdiff
path: root/test/tls/tls-macros.h
AgeCommit message (Collapse)Author
2015-10-08xtensa: support call0 ABIMax Filippov
Most changes are mechanical replacement of 'retw' instruction with 'abi_ret' macro, defined to 'retw' or 'ret' according to ABI. Assembly code that makes calls is duplicated for call0 ABI with changed register numbers for parameters/return value and call instruction. 'entry' instructions are replaced with 'abi_entry' macro. More interesting changes: - non-leaf assembly functions (e.g. _dl_tlsdesc_dynamic, _dl_linux_resolve, SYSCALL_ERROR_HANDLER, PSEUDO) now need to preserve registers around intermediate calls they make, use temporary stack frame for that; - setjmp/longjmp only need to save and restore return address, stack pointer and callee-saved registers in the jmpbuf; - __clone and syscall functions had hardcoded offsets to parameter passed on stack, on call0 ABI they don't need stack frame, so the offset is different. Replace these offsets with FRAMESIZE macro. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-07-03test/tls: xtensa: fix TLS_LD definitionMax Filippov
TLS_LD should use linker-provided symbol _TLS_MODULE_BASE_ instead of symbol it resolves to get thread pointer, otherwise linker relaxation doesn't work correctly, adding extra offset to thread-local variable address. This fixes most of tls/tst-tls* tests. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2014-09-23testsuite: fix xtensa macrosWaldemar Brodkorb
2014-09-23add tls test macros for xtensaWaldemar Brodkorb
http://lists.linux-xtensa.org/pipermail/linux-xtensa/Week-of-Mon-20130819/001153.html
2014-08-18ARC/NPTL: Add testsVineet Gupta
Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-05-09powerpc: Add TLS and NPTL supportKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-12-16build: Get rids of PIC macro using compiler flag __PIC__ insteadCarmelo Amoroso
Based on Peter Mazinger's comments on a recent commit, I decided to get rids of all occurrences of PIC changing them to __PIC__ Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2009-11-29test/: compile fixes for nptl and tls testsAustin Foxley
* Add a GLIBC_TESTS_DISABLED var because many of these tests need internal uClibc stuff. This disables the HOSTCC build of these tests * Fix up tls test macros for x86 * Fix the linking of the tls tests Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-10-17test/tls/: tests for thread local storage functionalityAustin Foxley
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>