From patchwork Wed Aug 12 14:41:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 40262 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 311BB3844048; Wed, 12 Aug 2020 14:51:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 311BB3844048 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1597243907; bh=gcixLrHW7tYWDsvi/CLAc/LCAeTlPkNWF6B8kYzRMvA=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=MHRP4Yn9wDjubpWHs9LwJLD4KgH5qepz8AmsinQ0UzKlmYj8QAf3G2pzuZ3wtPbI0 LNNU2grjMo9QHVy/79A7GVvAmEgpPl9WbtuqneYjSqUu3awTS96fm9Nb9dt37qlQMR WS4bm0/gNYPsQMcZdA4E3yd7T+7+rQNc2TJ94A4Q= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa4.hgst.iphmx.com (esa4.hgst.iphmx.com [216.71.154.42]) by sourceware.org (Postfix) with ESMTPS id E00BD3846405 for ; Wed, 12 Aug 2020 14:51:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E00BD3846405 IronPort-SDR: +3HXhFSVCn+vinxXdr5llxn7E816SzMwzZNa0YU681QMJ111uMxbuJa7L4dF+CDX3fcA8sqL+B L/2cOjXBmBCfeIMH63JR35/9NE6KeT3EgLNTZQE3b59Oibl53amsO/ynaqkK+8NLp4QkJV7u43 MhN0pgsENcIQKRQ3/fziA7TCH/uE10xnJDlXTfti/JoAXhmf9u3aoAc+PTpL+pNzcYLOfypkzg PLvgFU22HrOiMemdcHNpAqoiHswVGQjmOIuYmekPqN8fCVQyd4cV9LHSoGijbd3syb67AQwZ+/ f5o= X-IronPort-AV: E=Sophos;i="5.76,304,1592841600"; d="scan'208";a="144758235" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 12 Aug 2020 22:51:44 +0800 IronPort-SDR: qTFV9HFVvX/rdLWVimhWjMhajEi/iRE7tkhMJKJ3owfUMK0Pjlc8ig4vxXrd20AxasZXg21ZUJ 45Zuw3BP3u1w== Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2020 07:39:36 -0700 IronPort-SDR: jOXxVemFGOWeZuZFA2KS19WUmgD/PKV3V4WYF8ytJKGD9WSUShVC8+c3Sl60yID8iN0gCMogcP PlmJPiumN8Nw== WDCIronportException: Internal Received: from jbfyk72.ad.shared (HELO risc6-mainframe.hgst.com) ([10.86.59.14]) by uls-op-cesaip02.wdc.com with ESMTP; 12 Aug 2020 07:51:44 -0700 To: libc-alpha@sourceware.org Subject: [PATCH v4 14/18] riscv32: Specify the arch_minimum_kernel as 5.4 Date: Wed, 12 Aug 2020 07:41:44 -0700 Message-Id: X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alistair Francis via Libc-alpha From: Alistair Francis Reply-To: Alistair Francis Cc: macro@wdc.com, alistair.francis@wdc.com Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" 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. --- 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