Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lkm/compat/freebsd add emul_find() goo, so that this doe...



details:   https://anonhg.NetBSD.org/src/rev/27fb870ed687
branches:  trunk
changeset: 500725:27fb870ed687
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Dec 17 16:20:23 2000 +0000

description:
add emul_find() goo, so that this doesn't depend on emul_find() being already
present in kernel
add (commented out) COMPAT_43, COMPAT_12, COMPAT_09 stuff needed for this
LKM to load

diffstat:

 sys/lkm/compat/freebsd/Makefile |  22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 636ef88356fe -r 27fb870ed687 sys/lkm/compat/freebsd/Makefile
--- a/sys/lkm/compat/freebsd/Makefile   Sun Dec 17 16:15:54 2000 +0000
+++ b/sys/lkm/compat/freebsd/Makefile   Sun Dec 17 16:20:23 2000 +0000
@@ -1,11 +1,17 @@
-#      $NetBSD: Makefile,v 1.8 2000/12/13 11:18:38 enami Exp $
+#      $NetBSD: Makefile,v 1.9 2000/12/17 16:20:23 jdolecek Exp $
 
 .include "../Makefile.inc"
 
 .PATH: $S/compat/freebsd
 
-CPPFLAGS+=     -DVM86 -DSYSVSEM -DSYSVMSG -DSYSVSHM -DCOMPAT_FREEBSD
+CPPFLAGS+=     -DSYSVSEM -DSYSVMSG -DSYSVSHM -DCOMPAT_FREEBSD -DKTRACE
 CPPFLAGS+=     -nostdinc
+# compat_util.c symbol redifinitions
+CPPFLAGS+=     -Demul_find=freebsd_emul_find                           \
+               -Dstackgap_init=freebsd_stackgap_init                   \
+               -Demul_flags_translate=freebsd_emul_flags_translate     \
+               -Dstackgap_alloc=freebsd_stackgap_alloc                 \
+               -Dcompat_offseterr=freebsd_compat_offseterr
 AFLAGS=                -x assembler-with-cpp -traditional-cpp -D_LOCORE \
                -I. -I${S}
 
@@ -18,6 +24,18 @@
 SRCS+= freebsd_exec.c freebsd_file.c freebsd_ioctl.c freebsd_ipc.c \
        freebsd_misc.c freebsd_ptrace.c freebsd_syscalls.c freebsd_sysent.c
 
+# emul_find() and friends - symbols are redefined to freebsd_FOO()
+.PATH: $S/compat/common
+SRCS+= compat_util.c
+
+# XXXX - temporary, not applicable for kernel with COMPAT_43, OSSAUDIO
+#.PATH: $S/compat/common $S/compat/ossaudio
+#SRCS+=        uipc_syscalls_43.c vfs_syscalls_43.c kern_resource_43.c \
+#      kern_info_43.c ossaudio.c
+#SRCS+=        kern_info_09.c kern_sig_43.c kern_sig_13.c sysv_msg_14.c vm_43.c \
+#      sysv_shm_14.c kern_exit_43.c vm_12.c vfs_syscalls_12.c sysv_sem_14.c \
+#      sysv_ipc_14.c
+
 # MD source files
 .if ${MACHINE} == "i386"
 .PATH: $S/arch/i386/i386



Home | Main Index | Thread Index | Old Index