summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-01-09 17:29:08 +0000
committerdchagin <dchagin@FreeBSD.org>2016-01-09 17:29:08 +0000
commit05243c722867c54470c4a8757c8c05652a7ad919 (patch)
tree3ff1c414355a992fc237bcf0de922831a0684ad1 /sys/modules
parentd06d6422de7c5bb6015940e8cea11ea8a5faaa2c (diff)
downloadFreeBSD-src-05243c722867c54470c4a8757c8c05652a7ad919.zip
FreeBSD-src-05243c722867c54470c4a8757c8c05652a7ad919.tar.gz
MFC r283474:
Rework signal code to allow using it by other modules, like linprocfs: 1. Linux sigset always 64 bit on all platforms. In order to move Linux sigset code to the linux_common module define it as 64 bit int. Move Linux sigset manipulation routines to the MI path. 2. Move Linux signal number definitions to the MI path. In general, they are the same on all platforms except for a few signals. 3. Map Linux RT signals to the FreeBSD RT signals and hide signal conversion tables to avoid conversion errors. 4. Emulate Linux SIGPWR signal via FreeBSD SIGRTMIN signal which is outside of allowed on Linux signal numbers. PR: 197216
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/linux/Makefile2
-rw-r--r--sys/modules/linux_common/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index 57e2688..d0d9562 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/linux/Makefile
@@ -31,7 +31,7 @@ OBJS= ${VDSO}.so
.if ${MACHINE_CPUARCH} == "i386"
SRCS+= linux_ptrace.c imgact_linux.c linux_util.c linux_mib.c \
- linux_emul.c opt_cpu.h
+ linux_emul.c opt_cpu.h linux.c
.endif
.if ${MACHINE_CPUARCH} == "i386"
diff --git a/sys/modules/linux_common/Makefile b/sys/modules/linux_common/Makefile
index ebc475d..91449f7 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_util.c linux_emul.c \
- opt_compat.h device_if.h vnode_if.h bus_if.h
+ linux.c opt_compat.h device_if.h vnode_if.h bus_if.h
EXPORT_SYMS=
EXPORT_SYMS+= linux_emul_path
OpenPOWER on IntegriCloud