Message ID | e1ebc1f85efd9e75a333879033a445532c30555c.1565398513.git.alistair.francis@wdc.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-return-104280-incoming=patchwork.ozlabs.org@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-104280-incoming=patchwork.ozlabs.org@sourceware.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="SAdQDE0c"; dkim=pass (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="psxvL+Dp"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4653mm5qT5z9sMr for <incoming@patchwork.ozlabs.org>; Sat, 10 Aug 2019 11:04:56 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; q=dns; s= default; b=DwxMWhY7MgRcTSHK9TlWNIRfU8r50BgSVhpK/kpoA1RXDVQPQO/z8 8fXKn/5L2jCci6fObdKHEZMcPKiUzBjs5HQWvyHi/7cBXlDw/1v9hFq2RPTvXHnO 0fikLhHLo9w0BH/xfWSHuc3+feqqBLK1JMoclDFZWd0khz2ohbOhDA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; s=default; bh=rMVNg+lWf3NQML+gOQepQUHwjsg=; b=SAdQDE0cge8F7gaB9rXhRJvLq/4P DoxAuGmbE6q/L2C1jqBuFD+TkCNMXwzG0mc4ELltla2T3naoGN4hjxbi7UWszQt/ 8PUZK/lv5SIH2vUnlKdiJjG+KD4FhvTP4jOg2hysVdtopsHlfcbZiD1/4uM+Cr/S R7IrXiODRvRZ2gA= Received: (qmail 74883 invoked by alias); 10 Aug 2019 01:03:38 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <libc-alpha.sourceware.org> List-Unsubscribe: <mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org> List-Subscribe: <mailto:libc-alpha-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-help@sourceware.org>, <http://sourceware.org/ml/#faqs> Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 74821 invoked by uid 89); 10 Aug 2019 01:03:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=HX-Languages-Length:863, HContent-Transfer-Encoding:8bit X-HELO: esa5.hgst.iphmx.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1565399017; x=1596935017; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vMvUzsef/T5uR+49Kt7ZOmyyIWjWQfwvbUge5SgkD04=; b=psxvL+Dp5zk3sVZU2TDRJs18yUDdMFLhKBKOKgJHASaoiFe2p0G5/88B f7S1M8AnaNuPYVyOvbpTLJ+cHPrAc17aB5b9k0/VW4LfQtKJ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GeOeZSxd4ppOnSAjb3t1/HB41u0obYxi3CY+7ypkPV/CD0A0fTO52p mb5KwW2obO/ZP7ZmVYuMCpfihILlbYXHG6Ynf764t7s7Mza+aJ7mZDfRbxdCIOmgEiuqVkMMBJ 9ic= From: Alistair Francis <alistair.francis@wdc.com> To: libc-alpha@sourceware.org Cc: arnd@arndb.de, adhemerval.zanella@linaro.org, fweimer@redhat.com, palmer@sifive.com, macro@wdc.com, zongbox@gmail.com, alistair.francis@wdc.com, alistair23@gmail.com Subject: [RFC v4 11/24] RISC-V: define __NR_futex as __NR_futex_time64 for 32-bit Date: Fri, 9 Aug 2019 18:00:16 -0700 Message-Id: <e1ebc1f85efd9e75a333879033a445532c30555c.1565398513.git.alistair.francis@wdc.com> In-Reply-To: <cover.1565398513.git.alistair.francis@wdc.com> References: <cover.1565398513.git.alistair.francis@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit |
Series |
RISC-V glibc port for the 32-bit
|
expand
|
diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h index 5470ea3d2a6..b7607ef9f17 100644 --- a/sysdeps/unix/sysv/linux/riscv/sysdep.h +++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h @@ -116,6 +116,15 @@ #include <sysdeps/unix/sysdep.h> +#if __riscv_xlen == 32 +/* Define the __NR_futex as __NR_futex64 as RV32 doesn't have a + * __NR_futex syscall. + */ +# ifndef __NR_futex +# define __NR_futex __NR_futex_time64 +# endif +#endif + #undef SYS_ify #define SYS_ify(syscall_name) __NR_##syscall_name
The futex syscall isn't avaliable on R32 so let's define it to be futex_time64 instead. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> --- sysdeps/unix/sysv/linux/riscv/sysdep.h | 9 +++++++++ 1 file changed, 9 insertions(+)