aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/linux/linux_sysvec.c
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2022-10-28 21:19:39 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2022-11-06 14:54:46 +0000
commitd96eebfdb351abf5e604f43e8f022f8bb861bdbd (patch)
tree1c366ce5aade560e7005160a476c32af0c39e490 /sys/arm64/linux/linux_sysvec.c
parent9dc3a403c34e0013370a19fe581cfd8cff2effa3 (diff)
linux: populate sv_syscallnames in each sysentvec
This allows the syscallname() function to give a usable result for Linux ABIs. Reported by: jrtc27 Reviewed by: jrtc27, markj, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37199 (cherry picked from commit 1da65dcb1c57fae7be75ddf1bd300ddf19ced850) (cherry picked from commit f396f9b6c96f6d68d4e3606ddb090287230fc565)
Diffstat (limited to 'sys/arm64/linux/linux_sysvec.c')
-rw-r--r--sys/arm64/linux/linux_sysvec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arm64/linux/linux_sysvec.c b/sys/arm64/linux/linux_sysvec.c
index b8361584c31a..2533092b4cfd 100644
--- a/sys/arm64/linux/linux_sysvec.c
+++ b/sys/arm64/linux/linux_sysvec.c
@@ -98,6 +98,7 @@ extern char _binary_linux_vdso_so_o_end;
static vm_offset_t linux_vdso_base;
extern struct sysent linux_sysent[LINUX_SYS_MAXSYSCALL];
+extern const char *linux_syscallnames[];
SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler);
@@ -574,7 +575,7 @@ struct sysentvec elf_linux_sysvec = {
SV_SIG_WAITNDQ | SV_TIMEKEEP,
.sv_set_syscall_retval = linux_set_syscall_retval,
.sv_fetch_syscall_args = linux_fetch_syscall_args,
- .sv_syscallnames = NULL,
+ .sv_syscallnames = linux_syscallnames,
.sv_shared_page_base = LINUX_SHAREDPAGE,
.sv_shared_page_len = PAGE_SIZE,
.sv_schedtail = linux_schedtail,