public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] riscv32: Specify the arch_minimum_kernel as 5.4
@ 2020-08-27 18:37 Alistair Francis
0 siblings, 0 replies; only message in thread
From: Alistair Francis @ 2020-08-27 18:37 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7a55dd3fb6d2c307a002a16776be84310b9c8989
commit 7a55dd3fb6d2c307a002a16776be84310b9c8989
Author: Alistair Francis <alistair.francis@wdc.com>
Date: Fri Dec 20 18:29:42 2019 -0800
riscv32: Specify the arch_minimum_kernel as 5.4
Specify the minimum kernel version for RISC-V 32-bit as the 5.4 kernel.
We require this commit: "waitid: Add support for waiting for the current
process group" for the kernel as it adds support for the P_PGID id for
the waitid syscall. Without this patch we can't replace the wait4
syscall on 64-bit time_t only systems.
Reviewed-by: Maciej W. Rozycki <macro@wdc.com>
Diff:
---
sysdeps/unix/sysv/linux/riscv/configure | 4 ++++
sysdeps/unix/sysv/linux/riscv/configure.ac | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/sysdeps/unix/sysv/linux/riscv/configure b/sysdeps/unix/sysv/linux/riscv/configure
index 3018ca8f1b..de3bb62003 100755
--- a/sysdeps/unix/sysv/linux/riscv/configure
+++ b/sysdeps/unix/sysv/linux/riscv/configure
@@ -151,6 +151,10 @@ if test $libc_cv_riscv_int_abi = no; then
as_fn_error $? "Unable to determine integer ABI" "$LINENO" 5
fi
+if test $libc_cv_riscv_int_abi = ilp32; then
+ arch_minimum_kernel=5.4.0
+fi
+
libc_cv_riscv_float_abi=no
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
diff --git a/sysdeps/unix/sysv/linux/riscv/configure.ac b/sysdeps/unix/sysv/linux/riscv/configure.ac
index d4819931ca..0f7596502b 100644
--- a/sysdeps/unix/sysv/linux/riscv/configure.ac
+++ b/sysdeps/unix/sysv/linux/riscv/configure.ac
@@ -11,6 +11,10 @@ if test $libc_cv_riscv_int_abi = no; then
AC_MSG_ERROR([Unable to determine integer ABI])
fi
+if test $libc_cv_riscv_int_abi = ilp32; then
+ arch_minimum_kernel=5.4.0
+fi
+
libc_cv_riscv_float_abi=no
AC_EGREP_CPP(yes, [#ifdef __riscv_float_abi_double
yes
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-27 18:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-27 18:37 [glibc] riscv32: Specify the arch_minimum_kernel as 5.4 Alistair Francis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).