From patchwork Fri Jun 21 19:26:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 1950920 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=vAMKk4rq; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W5S6R2ptkz20X4 for ; Sat, 22 Jun 2024 05:27:11 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 939723830B67 for ; Fri, 21 Jun 2024 19:27:09 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by sourceware.org (Postfix) with ESMTPS id 3D2823831380 for ; Fri, 21 Jun 2024 19:26:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3D2823831380 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3D2823831380 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2604:1380:40e1:4800::1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718998016; cv=none; b=pUVFa1Hi6g/zPbNba8XG+O5eDqAW4QijS827Fh9qtPje0HTrVEAg6Eu4LF/9wU3iqq4gitOvZsu3jeIUgjligOrKiZro8JSvOhrLDPwc4kwybhVVBw09oJV7BUxTydPLOf5PIZr3LtPL1273a40H6bq15BG/mRa/iquu7uqowXs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718998016; c=relaxed/simple; bh=ZhnlL38L55WYXqjIVFjxbTLQ3LNiflOEz64b8JZQ8fk=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=AV5WvcFOkV/uNU29LmnRHAaCwYW3RYbV9eqiPth8TJ/SfwKR9+aJU/bPDy5zxLRYbY4erlUSCtwOUXBAm6Mm7d99w+Qpls3UlBUJ19Me21yjmK2POlj2Nc5BLbU9S9enaFAWefc//fQANPUVBKffnf9X/QlYaRTDaq1UUINNSMc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 611DDCE3C37; Fri, 21 Jun 2024 19:26:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EFC5C2BBFC; Fri, 21 Jun 2024 19:26:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718998010; bh=ZhnlL38L55WYXqjIVFjxbTLQ3LNiflOEz64b8JZQ8fk=; h=Date:From:To:Subject:From; b=vAMKk4rqF1zb0/fahpaDRvM/1WejHSFLD/8p25lL7TFSd6kOmuCuYoua2fv0Qy6bu W3ppuMfT+1uqx3ijV9VNP8+IUPEjGWwtNRF2Ck+E67cJCQxMnzdzMgoKE4xHOdvlwt tt6ckoXkqIlOvunqbwGoYz+2BLOgC5CoQF5sm97AOtKIMTbUpBC6lIi1/YfDUhVaoD 16S+2pjwTTAvaUwznFx4CiWyRqGPlkpqo+vuEeB/ezfhSHMQs/6sGva8Bw5iaOrtp9 3z7Ud4GaVfqQ9mKO2pHzFHqV6Pb9aLFybinY1mW4Di98xVs0AwIwVt5s13F3B/uYlu a2Wsv8vor+rSg== Date: Fri, 21 Jun 2024 21:26:46 +0200 From: Helge Deller To: libc-alpha@sourceware.org, John David Anglin , carlos@redhat.com, linux-parisc@vger.kernel.org Subject: [PATCH v2] hppa/vdso: Add wrappers for vDSO functions Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org The upcoming parisc (hppa) v6.11 Linux kernel will include vDSO support for gettimeofday(), clock_gettime() and clock_gettime64() syscalls for 32- and 64-bit userspace. The patch below adds the necessary glue code for glibc. Signed-off-by: Helge Deller Changes in v2: - add vsyscalls for 64-bit too Signed-off-by: Helge Deller diff -up ./sysdeps/unix/sysv/linux/hppa/sysdep.h.org ./sysdeps/unix/sysv/linux/hppa/sysdep.h --- ./sysdeps/unix/sysv/linux/hppa/sysdep.h.org 2024-06-15 20:20:58.992000000 +0000 +++ ./sysdeps/unix/sysv/linux/hppa/sysdep.h 2024-06-21 19:19:02.132000000 +0000 @@ -468,6 +468,18 @@ L(pre_end): ASM_LINE_SEP \ #define CLOB_ARGS_1 CLOB_ARGS_2, "%r25" #define CLOB_ARGS_0 CLOB_ARGS_1, "%r26" +#define VDSO_NAME "LINUX_6.11" +#define VDSO_HASH 182951793 + +#ifdef __LP64__ +# define HAVE_CLOCK_GETTIME_VSYSCALL "__vdso_clock_gettime" +# define HAVE_GETTIMEOFDAY_VSYSCALL "__vdso_gettimeofday" +#else +# define HAVE_CLOCK_GETTIME_VSYSCALL "__vdso_clock_gettime" +# define HAVE_CLOCK_GETTIME64_VSYSCALL "__vdso_clock_gettime64" +# define HAVE_GETTIMEOFDAY_VSYSCALL "__vdso_gettimeofday" +#endif /* __LP64__ */ + #endif /* __ASSEMBLER__ */ #endif /* _LINUX_HPPA_SYSDEP_H */