From nobody Fri Jun 17 19:36:50 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D78DA85A3A1; Fri, 17 Jun 2022 19:36:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LPq6p4bCcz3PCm; Fri, 17 Jun 2022 19:36:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=K4Ab4wLmI5ajDbTM5y6eX6y2tecqd7DR0RysBAPq3AA=; b=QeTVknAKOpLF99/awy4M6G2zhDQ2q0DddVVjbGuePgqsHZxU8ScdXZhrK80U+eyitZVvKS 2TgEiUN0bm7QnKEGTzWmwYZKuzD0hTStJcTPZUwKxHnz3Gckl2B9FRnFS+OX48nHOxyu24 tQQQzV6CmSfbBlt7hs4pSjybgbnsF6IG4MuCefYXysjbNqak9d7oUdAyuk4zFsZc9MnZ1l u1Ju88b8vOblKf4Pn2pdmQN/gpu9ylTfbU6jGAoInY22R4BAyVMfNL5vb/QY3v9dkeeO3k gdG72lFbf6NGLxezOvmteMNIMr8R8slROGoorUGiV/AADID4PtL9gCTTrlWdKg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 526B925C32; Fri, 17 Jun 2022 19:36:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25HJaoqw012552; Fri, 17 Jun 2022 19:36:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25HJaown012551; Fri, 17 Jun 2022 19:36:50 GMT (envelope-from git) Date: Fri, 17 Jun 2022 19:36:50 GMT Message-Id: <202206171936.25HJaown012551@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: f652f0b5d810 - stable/13 - linux(4): Remove function prototypes from the vDSO. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f652f0b5d81048c2b4c4c91a82272d76a353931f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=K4Ab4wLmI5ajDbTM5y6eX6y2tecqd7DR0RysBAPq3AA=; b=QJDbowJihJftTBYOFoxyDueVumEh+Png4+Rw3V/eEnCEoa5CE57cns7pyZYK92nKFzPDr1 NsdAxT1MalZGFLcdXT/rDYpOJCYAdtw72OYusFuwuKOEUTM8nWorzWt/PCxfhXiHCt0jqq JqKgBS/Mb7Uv5/yWqNIPda5gFTmXgryoeCx6sDI0D4CubZFf9/UqMK1Eu/Aj/z3++fbAs3 QyHRFJtMe8nh4n3Br1JWpDBEf4xs/62a89BLz8Qh54q4dkJH7bxmXBJPpYLtOKbuGGTzjJ 3kkC0ASQJtdJrJkuNIiXdlpT6i9ueoxhk2nbOB6puoi5wpOI4rz7/LLtxs6OAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655494610; a=rsa-sha256; cv=none; b=BczaEY0n/7snurJ3ELy1ZMtQRJcYGA9m/vw/4W4ujl4mphI41vex10v6GMeXsODWW9Rt22 re+F/S62isRQ68MWI8dyTKUdyzJI8wTVUcHA9q5S3MGaNtXX512HvwlWBpnIZ4hzRc6+BQ lYA/9RrrINC53ZJNjgAgamvaeyaNokxv5C5xU5m9dyetQtzv+uMT5OqWxu2MiinOcH46A7 Y1Xv0/NpYEjD+iVfTUgU6wvlhMp8wi7CpRHCEiqKWahuQrZNtH8pBI/MbYDMDjwKdg1bmV Ru5d/9xAYw6OQpeAfz7/CnJuge0lZx7u6pyy1ozD0hXoCnHMnvc865p+lXjBvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=f652f0b5d81048c2b4c4c91a82272d76a353931f commit f652f0b5d81048c2b4c4c91a82272d76a353931f Author: Dmitry Chagin AuthorDate: 2022-06-17 19:33:03 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-17 19:33:03 +0000 linux(4): Remove function prototypes from the vDSO. In preparation for vDSO code revision get rid of incomplete vDSO methods from locore, but leave .note.Linux section commented out. .note.Linux section is used by glibc rtld to get the kernel version, that saves one system call call. I'll try to implement it later, if figure out how to use it with jails. MFC after: 2 weeks (cherry picked from commit 815165be201e49d118e93dec6c257cd63b69d158) --- sys/amd64/linux/linux_locore.asm | 27 --------------------------- sys/arm64/linux/linux_locore.asm | 17 ----------------- 2 files changed, 44 deletions(-) diff --git a/sys/amd64/linux/linux_locore.asm b/sys/amd64/linux/linux_locore.asm index 1bcf05bc57dd..4ac44c35274b 100644 --- a/sys/amd64/linux/linux_locore.asm +++ b/sys/amd64/linux/linux_locore.asm @@ -32,33 +32,6 @@ NON_GPROF_ENTRY(linux_rt_sigcode) .endrtsigcode: 0: jmp 0b -NON_GPROF_ENTRY(__vdso_clock_gettime) - movq $LINUX_SYS_linux_clock_gettime,%rax - syscall - ret -.weak clock_gettime -.set clock_gettime, __vdso_clock_gettime - -NON_GPROF_ENTRY(__vdso_time) - movq $LINUX_SYS_linux_time,%rax - syscall - ret -.weak time -.set time, __vdso_time - -NON_GPROF_ENTRY(__vdso_gettimeofday) - movq $LINUX_SYS_gettimeofday,%rax - syscall - ret -.weak gettimeofday -.set gettimeofday, __vdso_gettimeofday - -NON_GPROF_ENTRY(__vdso_getcpu) - movq $-38,%rax /* not implemented */ - ret -.weak getcpu -.set getcpu, __vdso_getcpu - #if 0 .section .note.Linux, "a",@note .long 2f - 1f /* namesz */ diff --git a/sys/arm64/linux/linux_locore.asm b/sys/arm64/linux/linux_locore.asm index 5f0729b363e8..24a48d74f7b5 100644 --- a/sys/arm64/linux/linux_locore.asm +++ b/sys/arm64/linux/linux_locore.asm @@ -48,20 +48,3 @@ ENTRY(__kernel_rt_sigreturn) brk #0 /* LINUXTODO: implement __kernel_rt_sigreturn */ ret END(__kernel_rt_sigreturn) - -ENTRY(__kernel_gettimeofday) - ldr x8, =LINUX_SYS_gettimeofday - svc #0 - ret -END(__kernel_gettimeofday) - -ENTRY(__kernel_clock_gettime) - ldr x8, =LINUX_SYS_linux_clock_gettime - svc #0 - ret -END(__kernel_clock_gettime) - -ENTRY(__kernel_clock_getres) - brk #0 /* LINUXTODO: implement __kernel_clock_getres */ - ret -END(__kernel_clock_getres)