From patchwork Sun Jan 12 10:33:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 1221713 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-108601-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) 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.a=rsa-sha1 header.s=default header.b=ubfrH4fH; dkim=pass (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.a=rsa-sha256 header.s=dkim.wdc.com header.b=ZcuDGo/3; 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 47wYDY5D2Dz9sQp for ; Sun, 12 Jan 2020 21:41:33 +1100 (AEDT) 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=VqKRuH18MC7mtwOSSuFTWZlQ+t22MvHgsi1fDhgbDNmT+Wvyvjdyz pi5LRoBTKX/bf5qaiaZ9ObxkHMI2AEyLX03bgtVPGV8pJXXIeslG6DlKfROWx2DH qHQuO46E6mfqA54moKVlMMWLgkioU2/+cHKYxtAMbFqY2E6d3Jwi7Y= 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=d+yAKPFy+8CGX5PXIlSXICf0oV0=; b=ubfrH4fH6ntF01sG1nimAyRnATM/ 5iWy8kCARNRtH/sdMsobz1LpdjHU5NnLOfmc+E7f2dapXd7PN5BGrL55SBsCVtlQ gsta4RdH5FyrkL9G4q93t0T36XOH4Ik+ddPU8Ew6LpPNlEZ1gb+V1hL8fAOweAX6 vqZi54pv6N4GoXk= Received: (qmail 11440 invoked by alias); 12 Jan 2020 10:40:25 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 11376 invoked by uid 89); 12 Jan 2020 10:40:24 -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=HContent-Transfer-Encoding:8bit X-HELO: esa6.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=1578825623; x=1610361623; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=K2y4IJd1TMljagttbxAUNB2EatVb8BRPcJu1iO/JUSo=; b=ZcuDGo/3uoXdE//SWlSISNS1gsxAqJz6t6BUkXj4J1vX1KN3sow4VtT5 +x/vUthaJZKZSPcvyBCHXjFJ6Bsf6Njhy+uhdGHmTxUr5GvVf3goZbZX2 W6Y19ZnURhapK8+B4kQPCGEgSP6DcFaCra4Fz0oAxtPZ6kCfcRqLgP9z1 stA73yLaB8x+9Dd7bYZmfObmrHJmibEsCZ3X6fnGlF5EJpjjL6c9LS8UG GqUxVMzomfrip1bsQnIcTD9rRaGlxopeu8z3nOVya9B3QnHGwSy+mDWt6 FjA3Z2qoq2hUuyhycELsYT40Q8ujNtByavLuTPcsRSg8rnMW8aJcX5kdb g==; IronPort-SDR: am5p3cpeIQG2WgxScPJnVPxpWHL5iGJoc21VufbBQuljP8A9IqZ9+K5fZqg1eO9a67Em1wOLgN 7MVQEzKW5OrW/WxV63xIb+dPwC2N767VH3mYoVHAbBv/sjz+jAJDsryagJKVAuQfZAFCbUWgGa h4wUIM24gD1TJ0ZE0PR3H61lZunfg636Q7SzkA/se6O3FhKLRM5Eyj+HMXAKlUVnQjgn6z2jFA FaEGD6W77US0mrmLk2HrU6r0896ihuwiB829V9DJ3SKYo1q9X2h3ln6hJo9YPQsuPMhgOfVWSG fr8= IronPort-SDR: E2rQLWtqVjtvXz74Ouq4TfB7AlUoHFJ5n22VuMsCS6DRH8O+8aaDhgXDIBBoh/MzlslsFidusU 4r9joWnyW20g7NaoUelY+KglKn6ZpdARYnL3Yo9xA6oM6/AsG5RAMQC5B171IZXD9hbc+34ck0 OoUHpZX8R/O6HgY1xCCzC4oGz9SKjdGz/2MPBgau3SX/SvmBByKDs/jIe6I/lWpUPfA/Bt8+yc 75miEdyuu4SK9JCjUmcA5Ge1aCxA0V5uvGBJIUTIQnR16EleNYAXrMRAq75inAoDI/EEyb5KVV 3uU+GA1WI4W+jGpIgqP3F6JX IronPort-SDR: OWCBerKYvMV4kK5Gpuo3lvleq3p7z9XLyUjDqsbH+IZ1VX/ms76poG0OcnH0AZqXkvfB6czNne z7c5nu6qmiqPb1P7LnbATtjpalY7IRO727/+G+Et/HC+HLwzMmo7VBAkSlFrZjAC9n7/Ri7+Fs usQ1Uw4NDaIH7Lnlpz6XduaaadJGC76mi6FJON/njmYRQ20qiu+Vy7c3O/YBQl4liUVSX3oBQk 9LcAxCQeJGaqVybzXyAVmR2lxbIwDxBpvIVIsQ+pqKbO0XuOTSRfqZ5QhN9bxJwma9Ph2xwYtE l/4= WDCIronportException: Internal From: Alistair Francis To: libc-alpha@sourceware.org Cc: arnd@arndb.de, adhemerval.zanella@linaro.org, fweimer@redhat.com, joseph@codesourcery.com, palmerdabbelt@google.com, macro@wdc.com, zongbox@gmail.com, alistair.francis@wdc.com, alistair23@gmail.com Subject: [RFC v6 09/23] RISC-V: Add support for 32-bit vDSO calls Date: Sun, 12 Jan 2020 02:33:55 -0800 Message-Id: <29811415ee8fa8e8e4cb379903c2199b5df54f9b.1578824547.git.alistair.francis@wdc.com> In-Reply-To: References: MIME-Version: 1.0 --- sysdeps/unix/sysv/linux/riscv/sysdep.h | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h index d030bf0db0..b02a5c30f6 100644 --- a/sysdeps/unix/sysv/linux/riscv/sysdep.h +++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h @@ -194,14 +194,23 @@ #ifndef __ASSEMBLER__ -# define VDSO_NAME "LINUX_4.15" -# define VDSO_HASH 182943605 +# if __riscv_xlen == 32 +# define VDSO_NAME "LINUX_5.4" +# define VDSO_HASH 61765876 /* List of system calls which are supported as vsyscalls. */ -# define HAVE_CLOCK_GETRES64_VSYSCALL "__vdso_clock_getres" -# define HAVE_CLOCK_GETTIME64_VSYSCALL "__vdso_clock_gettime" -# define HAVE_GETTIMEOFDAY_VSYSCALL "__vdso_gettimeofday" -# define HAVE_GETCPU_VSYSCALL "__vdso_getcpu" +# define HAVE_CLOCK_GETTIME64_VSYSCALL "__vdso_clock_gettime64" +# define HAVE_GETCPU_VSYSCALL "__vdso_getcpu" +# else +# define VDSO_NAME "LINUX_4.15" +# define VDSO_HASH 182943605 + +/* List of system calls which are supported as vsyscalls. */ +# define HAVE_CLOCK_GETRES64_VSYSCALL "__vdso_clock_getres" +# define HAVE_CLOCK_GETTIME64_VSYSCALL "__vdso_clock_gettime" +# define HAVE_GETTIMEOFDAY_VSYSCALL "__vdso_gettimeofday" +# define HAVE_GETCPU_VSYSCALL "__vdso_getcpu" +# endif /* Define a macro which expands into the inline wrapper code for a system call. */