Message ID | 81e1f1f6afe13b81d0c98b38299e7c852ee6903a.1563321715.git.alistair.francis@wdc.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-return-103692-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-103692-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="a2bogb4a"; dkim=pass (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="XAOSZLPn"; 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 45pHlq4G90z9sND for <incoming@patchwork.ozlabs.org>; Wed, 17 Jul 2019 10:12:55 +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=tY774uG8fxrXzgiqTrAgluv03jmc/Drgd+XKayGZyPpVpJlTkGVwo otDc2Sq26+V49k1MH36svh13Lg6p1P0Kx7eZYFAkTU470oNNlSTR/J+WvJqTU5KG skFlBwt6zaC7Q91FpxYViZVXlK21860PpgOHDL+fT213rVTbku/Bqw= 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=ccykg0qZcpnkOXs/QpIly21tExI=; b=a2bogb4aKJGKxWQFtd0lqRFB6Bh3 jP2l6fXFfZ4XWfBo7vGJpTwNgQfHDrqSOnJx44WT0mtbH+4m3Uc6/r30jlkpqp4t 9SIzMZHF+OV9kvuWFsoQvYLrfojjgiaauJGr8nX7HsFrRJK1ngRFNjmO1PQZOptK fDeFA/k0b/Qeb78= Received: (qmail 17026 invoked by alias); 17 Jul 2019 00:11:57 -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 16951 invoked by uid 89); 17 Jul 2019 00:11:56 -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:861, HContent-Transfer-Encoding:8bit X-HELO: esa3.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=1563322315; x=1594858315; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bU5tS22Q8JSY0YoKrI6LSaAPyxvbkx/Sy88xDzul7zo=; b=XAOSZLPnHR1Rh/VUWbDr/VWjEg0Y6uGjWsZbpzwVguL+qruoagB3gBBq +npM1fzjUjYr65oqZT60bK0G/4HUFCcs/PmsjMOgYBcx7cd2UFrASTUWL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XoRxcOZK4q9qjqY cQs+LV1DXk7bKAcI9dZ3tiYAz9kCaaxm09ofcGJAH4iiqUd/iWvF/sqMOntT5sClI+S031sdI3 K0U= 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 v3 08/23] RISC-V: define __NR_futex as __NR_futex_time64 for 32-bit Date: Tue, 16 Jul 2019 17:09:02 -0700 Message-Id: <81e1f1f6afe13b81d0c98b38299e7c852ee6903a.1563321715.git.alistair.francis@wdc.com> In-Reply-To: <cover.1563321715.git.alistair.francis@wdc.com> References: <cover.1563321715.git.alistair.francis@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit |
Series |
[RFC,v3,01/23] sysdeps/nanosleep: Use clock_nanosleep_time64 if avaliable
|
expand
|
diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h index 5470ea3d2a..b7607ef9f1 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(+)