From d0bc0d2bc8e5898bed6dfa6f253d164e9fc149f4 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 8 Nov 2019 03:03:43 +0100 Subject: 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. --- libc/sysdeps/linux/riscv64/sys/ucontext.h | 2 ++ libc/sysdeps/linux/riscv64/sysdep.h | 1 + 2 files changed, 3 insertions(+) (limited to 'libc') diff --git a/libc/sysdeps/linux/riscv64/sys/ucontext.h b/libc/sysdeps/linux/riscv64/sys/ucontext.h index 2a80a853c..2893ff359 100644 --- a/libc/sysdeps/linux/riscv64/sys/ucontext.h +++ b/libc/sysdeps/linux/riscv64/sys/ucontext.h @@ -21,6 +21,8 @@ #define _SYS_UCONTEXT_H 1 #include +#include +#include typedef unsigned long int __riscv_mc_gp_state[32]; diff --git a/libc/sysdeps/linux/riscv64/sysdep.h b/libc/sysdeps/linux/riscv64/sysdep.h index b12329332..3fa04bb57 100644 --- a/libc/sysdeps/linux/riscv64/sysdep.h +++ b/libc/sysdeps/linux/riscv64/sysdep.h @@ -20,6 +20,7 @@ #define _LINUX_RISCV_SYSDEP_H 1 #include +#include #ifdef __ASSEMBLER__ -- cgit v1.2.3