riscv64: implement NPTL/TLS
commitd0bc0d2bc8e5898bed6dfa6f253d164e9fc149f4
authorWaldemar Brodkorb <wbx@openadk.org>
Fri, 8 Nov 2019 02:03:43 +0000 (8 03:03 +0100)
committerWaldemar Brodkorb <wbx@openadk.org>
Fri, 8 Nov 2019 02:03:43 +0000 (8 03:03 +0100)
treee6315b68a6c5100bdcec391cd965ef63d5291f82
parentcb9d1f53717dd67892ba943626f3d1b46f3e760b
riscv64: implement NPTL/TLS

basically from or1k port of uClibc-ng, with fixes for structures in
pthreadtypes.h from 64 bit architectures.

18 testsuite failures counted.
21 files changed:
extra/Configs/Config.in
ldso/ldso/riscv64/elfinterp.c
libc/sysdeps/linux/riscv64/sys/ucontext.h
libc/sysdeps/linux/riscv64/sysdep.h
libpthread/nptl/sysdeps/riscv64/Makefile.arch [new file with mode: 0644]
libpthread/nptl/sysdeps/riscv64/dl-tls.h [new file with mode: 0644]
libpthread/nptl/sysdeps/riscv64/libc-tls.c [new file with mode: 0644]
libpthread/nptl/sysdeps/riscv64/pthread_spin_lock.c [new file with mode: 0644]
libpthread/nptl/sysdeps/riscv64/pthread_spin_trylock.c [new file with mode: 0644]
libpthread/nptl/sysdeps/riscv64/pthreaddef.h [new file with mode: 0644]
libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym [new file with mode: 0644]
libpthread/nptl/sysdeps/riscv64/tls.h [new file with mode: 0644]
libpthread/nptl/sysdeps/unix/sysv/linux/aarch64/bits/pthreadtypes.h
libpthread/nptl/sysdeps/unix/sysv/linux/riscv64/Makefile [new file with mode: 0644]
libpthread/nptl/sysdeps/unix/sysv/linux/riscv64/Makefile.arch [new file with mode: 0644]
libpthread/nptl/sysdeps/unix/sysv/linux/riscv64/bits/pthreadtypes.h [copied from libpthread/nptl/sysdeps/unix/sysv/linux/aarch64/bits/pthreadtypes.h with 81% similarity]
libpthread/nptl/sysdeps/unix/sysv/linux/riscv64/bits/semaphore.h [new file with mode: 0644]
libpthread/nptl/sysdeps/unix/sysv/linux/riscv64/createthread.c [new file with mode: 0644]
libpthread/nptl/sysdeps/unix/sysv/linux/riscv64/fork.c [new file with mode: 0644]
libpthread/nptl/sysdeps/unix/sysv/linux/riscv64/pthread_once.c [new file with mode: 0644]
libpthread/nptl/sysdeps/unix/sysv/linux/riscv64/sysdep-cancel.h [new file with mode: 0644]