aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/linux
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/linux
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/linux')
-rw-r--r--sys/modules/linux/Makefile6
1 files changed, 6 insertions, 0 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