aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2020-11-05 19:30:31 +0000
committerConrad Meyer <cem@FreeBSD.org>2020-11-05 19:30:31 +0000
commite9b13c6612fea4e74f0c9c543e21d29d91a24dff (patch)
treebba0370b60c3f26bf030fc59733e9401f032f350 /sys/modules
parent6998d5b1c86c56aeb5fa218db63c17b1732ec845 (diff)
linux(4): Deduplicate unimpl/dummy syscall handlers
No functional change. Reviewed by: emaste, trasz Differential Revision: https://reviews.freebsd.org/D27099
Notes
Notes: svn path=/head/; revision=367395
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/linux/Makefile6
-rw-r--r--sys/modules/linux64/Makefile8
-rw-r--r--sys/modules/linux_common/Makefile2
3 files changed, 14 insertions, 2 deletions
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index e5b70933acd4..0873e22c0832 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/linux/Makefile
@@ -6,6 +6,9 @@ CFLAGS+=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32
.endif
.PATH: ${SRCTOP}/sys/compat/linux ${SRCTOP}/sys/${MACHINE_CPUARCH}/linux${SFX}
+.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
+.PATH: ${SRCTOP}/sys/x86/linux
+.endif
VDSO= linux${SFX}_vdso
@@ -18,6 +21,9 @@ SRCS= linux_fork.c linux${SFX}_dummy.c linux_file.c linux_event.c \
linux_timer.c linux_vdso.c \
opt_inet6.h opt_compat.h opt_posix.h opt_usb.h vnode_if.h \
device_if.h bus_if.h
+.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
+SRCS+= linux_dummy_x86.c
+.endif
.if ${MACHINE_CPUARCH} == "amd64"
SRCS+= linux${SFX}_support.s
.else
diff --git a/sys/modules/linux64/Makefile b/sys/modules/linux64/Makefile
index 162cfea625c9..91b419558d82 100644
--- a/sys/modules/linux64/Makefile
+++ b/sys/modules/linux64/Makefile
@@ -1,11 +1,14 @@
# $FreeBSD$
.PATH: ${SRCTOP}/sys/compat/linux ${SRCTOP}/sys/${MACHINE}/linux
+.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
+.PATH: ${SRCTOP}/sys/x86/linux
+.endif
VDSO= linux_vdso
KMOD= linux64
-SRCS= linux_fork.c linux_dummy.c linux_file.c linux_event.c \
+SRCS= linux_fork.c linux_dummy_machdep.c linux_file.c linux_event.c \
linux_futex.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
linux_machdep.c linux_misc.c linux_ptrace.c linux_signal.c \
linux_socket.c linux_stats.c linux_sysctl.c linux_sysent.c \
@@ -13,6 +16,9 @@ SRCS= linux_fork.c linux_dummy.c linux_file.c linux_event.c \
opt_compat.h opt_inet6.h opt_posix.h opt_usb.h \
vnode_if.h device_if.h bus_if.h \
linux_support.s
+.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
+SRCS+= linux_dummy_x86.c
+.endif
DPSRCS= assym.inc linux_genassym.c
# XXX: for assym.inc
diff --git a/sys/modules/linux_common/Makefile b/sys/modules/linux_common/Makefile
index 70f22ef10bae..c7d139e2fb9a 100644
--- a/sys/modules/linux_common/Makefile
+++ b/sys/modules/linux_common/Makefile
@@ -4,7 +4,7 @@
KMOD= linux_common
SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \
- linux_errno.c \
+ linux_dummy.c linux_errno.c \
linux.c device_if.h vnode_if.h bus_if.h opt_inet6.h
EXPORT_SYMS=