Stripped '32' suffix from linux systrace module name on i386.
Approved by: avg
This commit is contained in:
parent
95c723445e
commit
abb03c087d
@ -64,16 +64,17 @@
|
||||
#include <amd64/linux32/linux32_proto.h>
|
||||
#include <amd64/linux32/linux32_syscalls.c>
|
||||
#include <amd64/linux32/linux32_systrace_args.c>
|
||||
#define MODNAME "linux32"
|
||||
#elif defined(__i386__)
|
||||
#include <i386/linux/linux.h>
|
||||
#include <i386/linux/linux_proto.h>
|
||||
#include <i386/linux/linux_syscalls.c>
|
||||
#include <i386/linux/linux_systrace_args.c>
|
||||
#define MODNAME "linux"
|
||||
#else
|
||||
#error Only i386 and amd64 are supported.
|
||||
#endif
|
||||
extern struct sysent linux_sysent[];
|
||||
#define MODNAME "linux32"
|
||||
#define MAXSYSCALL LINUX_SYS_MAXSYSCALL
|
||||
#define SYSCALLNAMES linux_syscallnames
|
||||
#define SYSENT linux_sysent
|
||||
@ -132,7 +133,7 @@ static struct cdevsw systrace_cdevsw = {
|
||||
.d_version = D_VERSION,
|
||||
.d_open = systrace_open,
|
||||
#ifdef LINUX_SYSTRACE
|
||||
.d_name = "linsystrace",
|
||||
.d_name = "systrace_" MODNAME,
|
||||
#else
|
||||
.d_name = "systrace",
|
||||
#endif
|
||||
|
@ -2,7 +2,12 @@
|
||||
|
||||
.PATH: ${.CURDIR}/../../../cddl/dev/systrace
|
||||
|
||||
.if ${MACHINE} == "amd64"
|
||||
KMOD= systrace_linux32
|
||||
.else
|
||||
KMOD= systrace_linux
|
||||
.endif
|
||||
|
||||
SRCS= systrace.c
|
||||
SRCS+= vnode_if.h
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user