git: 84a3963d5d94 - main - linux(4): remove unfinished vsyscall bits on arm64

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Jul 13 09:59:34 UTC 2021


The branch main has been updated by trasz:

URL: https://cgit.FreeBSD.org/src/commit/?id=84a3963d5d94be05c913d04ea0cef4ac69a8bfc7

commit 84a3963d5d94be05c913d04ea0cef4ac69a8bfc7
Author:     Edward Tomasz Napierala <trasz at FreeBSD.org>
AuthorDate: 2021-07-13 09:52:13 +0000
Commit:     Edward Tomasz Napierala <trasz at FreeBSD.org>
CommitDate: 2021-07-13 09:52:18 +0000

    linux(4): remove unfinished vsyscall bits on arm64
    
    The vsyscall mechanism is obsolete.
    
    Reviewed By:    dchagin, emaste
    Sponsored By:   EPSRC
    Differential Revision:  https://reviews.freebsd.org/D31091
---
 sys/arm64/linux/linux_sysvec.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/sys/arm64/linux/linux_sysvec.c b/sys/arm64/linux/linux_sysvec.c
index e1d3708b70e9..40f68a537985 100644
--- a/sys/arm64/linux/linux_sysvec.c
+++ b/sys/arm64/linux/linux_sysvec.c
@@ -86,7 +86,6 @@ static void	linux_set_syscall_retval(struct thread *td, int error);
 static int	linux_fetch_syscall_args(struct thread *td);
 static void	linux_exec_setregs(struct thread *td, struct image_params *imgp,
 		    uintptr_t stack);
-static int	linux_vsyscall(struct thread *td);
 
 /* DTrace init */
 LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
@@ -98,7 +97,6 @@ LIN_SDT_PROBE_DEFINE0(sysvec, linux_copyout_auxargs, todo);
 LIN_SDT_PROBE_DEFINE0(sysvec, linux_elf_fixup, todo);
 LIN_SDT_PROBE_DEFINE0(sysvec, linux_rt_sigreturn, todo);
 LIN_SDT_PROBE_DEFINE0(sysvec, linux_rt_sendsig, todo);
-LIN_SDT_PROBE_DEFINE0(sysvec, linux_vsyscall, todo);
 LIN_SDT_PROBE_DEFINE0(sysvec, linux_vdso_install, todo);
 LIN_SDT_PROBE_DEFINE0(sysvec, linux_vdso_deinstall, todo);
 
@@ -397,15 +395,6 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
 	LIN_SDT_PROBE0(sysvec, linux_rt_sendsig, todo);
 }
 
-static int
-linux_vsyscall(struct thread *td)
-{
-
-	/* LINUXTODO: implement */
-	LIN_SDT_PROBE0(sysvec, linux_vsyscall, todo);
-	return (EDOOFUS);
-}
-
 struct sysentvec elf_linux_sysvec = {
 	.sv_size	= LINUX_SYS_MAXSYSCALL,
 	.sv_table	= linux_sysent,
@@ -440,7 +429,7 @@ struct sysentvec elf_linux_sysvec = {
 	.sv_shared_page_len = PAGE_SIZE,
 	.sv_schedtail	= linux_schedtail,
 	.sv_thread_detach = linux_thread_detach,
-	.sv_trap	= linux_vsyscall,
+	.sv_trap	= NULL,
 	.sv_hwcap	= &elf_hwcap,
 	.sv_hwcap2	= &elf_hwcap2,
 	.sv_onexec	= linux_on_exec,


More information about the dev-commits-src-all mailing list