From e9b13c6612fea4e74f0c9c543e21d29d91a24dff Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Thu, 5 Nov 2020 19:30:31 +0000 Subject: linux(4): Deduplicate unimpl/dummy syscall handlers No functional change. Reviewed by: emaste, trasz Differential Revision: https://reviews.freebsd.org/D27099 --- sys/modules/linux/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/modules/linux') 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 -- cgit v1.2.3