Commit Graph

250 Commits

Author SHA1 Message Date
jdolecek ef8abe0767 Make the setregs hook emulation-specific, rather than executable
format specific.
Struct emul has a e_setregs hook back, which points to emulation-specific
setregs function. es_setregs of struct execsw now only points to
optional executable-specific setup function (this is only used for
ECOFF).
2001-09-18 19:36:32 +00:00
chuck b8a7c35e58 vax1k_subr.c is gone 2001-09-08 13:19:50 +00:00
mrg 6ca0883022 build netbsd32, sunos32, svr4 and svr4_32 LKM's on sparc64. 2001-08-14 12:00:01 +00:00
lukem e2f9740f5b add arch/${MACHINE_CPU}/${MACHINE_CPU} for the arm ports 2001-08-05 13:41:50 +00:00
assar bec71dc090 change vop_symlink and vop_mknod to return vpp (the created node)
refed, so that the caller can actually use it.  update callers and
file systems that implement these vnode operations
2001-07-24 15:39:30 +00:00
mrg 5beff52e9c port this to sparc64. 2001-07-18 16:53:34 +00:00
jdolecek d3dad41a97 Add -DINET6 to CPPFLAGS, so that the check for pre-RFC2553 sockaddr_in6
is included.
Remove uipc_syscalls_43.c from (commented out) list, it's no longer needed.
2001-07-04 10:29:16 +00:00
jdolecek 74e9588fda Add linux_trap.c for i386 2001-06-19 18:18:42 +00:00
mrg b1708374d0 build svr4 & svr4_32 on sparc64. 2001-06-06 21:38:49 +00:00
mrg c272b4d4a8 build an svr4_32 LKM. create common framework for svr4 & svr4_32 2001-06-06 21:38:01 +00:00
mrg 8b1f9462dc make this build. 2001-06-06 21:34:23 +00:00
mrg 1833b2e5e6 define COMPAT_10 and COMPAT_13, add netbsd32_kern_sig.c and netbsd32_uvm_unix.c,
and on sparc64, add netbsd32_machdep.c netbsd32_sigcode.s.
2001-06-06 21:33:24 +00:00
mrg b95ce67182 add sunos32_machdep.c sunos_sigcode.s for MACHINE=sparc64 2001-06-06 21:31:49 +00:00
mrg 8c3d780729 build exec_elf.o LKM. 2001-06-06 21:21:30 +00:00
mrg 9a5a253ef5 an EXEC_ELF32 module, for sparc64. 2001-06-06 20:45:59 +00:00
mrg 390ea77cb0 build svr4_32_elf exec module. 2001-06-05 14:49:00 +00:00
mrg ba3f355900 svr4_32_elf 2001-06-05 14:48:59 +00:00
mrg e598a3319c this is sunos32 not sunos 2001-06-05 12:44:23 +00:00
jdolecek 09afb2735c Add recently added linux_time.c to list 2001-06-01 23:02:55 +00:00
lukem 6cb5e77db5 remove use of gcc syntax for designated initialisers when initialising
unions `union_elem: ...', and use c99 syntax `.union_elem = ...' only
where necessary.
in this case, there's no need to tag elf_probe_func because that's the
first union element, and therefore, the implicit case. only specifically
mention ecoff_probe_func where necessary.

if we decide to not use this c99 feature for now, at least there's now
less stuff to rip out.
2001-05-15 02:00:12 +00:00
tsutsui 46023e3c2d Remove aoutm68k_misc.c from SRCS since it is only needed
if COMPAT_AOUT_ALTPATH is specified.

XXX: How should we handle options like this on LKMs?
2001-04-09 16:03:22 +00:00
tsutsui a13921cd57 Remove -DVM86 from CPPFLAGS. 2001-03-21 14:38:16 +00:00
mrg 82f3d730e3 catch up with netbsd32_netbsd.c split. 2001-02-17 12:00:37 +00:00
tron 7099caed23 Make this LKM work again by building "ntfs_conv.c". 2001-02-16 10:07:02 +00:00
tsutsui 623fcffffe Ultrix LKM would not be useful on mipseb so don't build it.
Suggested by soren and simonb.
2001-02-08 12:58:12 +00:00
tsutsui b43eeac561 mips[bl]e -> mipse[bl]
XXX: Is it worth to build ultrix module on mipseb?
2001-02-07 13:54:13 +00:00
mrg 499a68815c also build sunos32_aout on sparc64 2001-02-07 13:36:04 +00:00
mrg f50604bf29 build a sunos32 a.out exec module. 2001-02-07 13:35:39 +00:00
mrg 76d74bdd76 sparc64: build sunos32 (not sunos). don't build svr4, but comment to build svr4_32. 2001-02-07 13:34:17 +00:00
mrg 0dbcb1789b build a sunos32 compat module. 2001-02-07 13:32:57 +00:00
mrg dfa5ed17a0 s/-DVM86 // 2001-02-07 13:32:15 +00:00
chs 09cb38f22b expose the definitions of MIN() and MAX() in sys/param.h to the kernel
and use those in favor of a dozen copies scattered around the source tree.
2001-02-05 10:42:40 +00:00
tron 5e89f0c397 Make the "procfs" LKM work again by including "procfs_map.c" in the
build.
2001-02-03 09:19:45 +00:00
jdolecek 8881c0b414 build and install filecorefs LKM same way as other VFS LKMs 2001-01-27 23:48:32 +00:00
jdolecek 3c532ca5ef adapt to struct sysent change 2001-01-27 17:06:31 +00:00
jdolecek c684abec3c add filecorefs LKM - noticed it's missing
XXX not tested
2001-01-22 13:41:51 +00:00
fvdl 4de25b5279 Add procfs_machdep.c and .PATH for it. 2001-01-17 00:09:31 +00:00
christos 1e3e288bb5 protect against multiple inclusion. 2001-01-14 06:29:27 +00:00
fvdl 8c4bd70cda Add linux_blkio.c 2001-01-10 02:29:29 +00:00
jdolecek ca8ea62791 add freebsd_syscall.c 2000-12-18 20:50:09 +00:00
jdolecek 5c6130a2b1 hum, use freebsd_setregs for FreeBSD ELF binaries (this bug was introduced with
the execsw[] changes)
2000-12-17 21:36:49 +00:00
jdolecek 6665bd7a9d add compat_util.c goo so that this doesn't depend on emul_find()
being available in the running kernel
2000-12-17 16:21:12 +00:00
jdolecek 5803fc683f 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
2000-12-17 16:20:23 +00:00
jdolecek aca80bc6f2 use LKM name "compat_FOO", which matches name of the resulting LKM .o file 2000-12-17 16:00:37 +00:00
mycroft 84e07a956d Add osf1_syscall.c. 2000-12-14 18:42:07 +00:00
mycroft c071846a91 Add linux_syscall.c for alpha. 2000-12-14 18:40:14 +00:00
enami 53c37af153 Cosmetic changes. 2000-12-13 11:18:37 +00:00
enami 36e5e860b4 Fix typo so that this file compiles again. 2000-12-13 11:10:36 +00:00
jdolecek ce61cff723 add linux_file64.c for i386 2000-12-12 22:40:23 +00:00
jdolecek c354ba3632 m68k:
* do not include linux_oldolduname.c, linux_olduname.c
 * remove duplicate linux_ipccall.c
 * add new linux_file64.c (64bit *stat)
2000-12-12 19:06:53 +00:00
jdolecek 4afddd598b don't include linux_olduname.c on m68k 2000-12-12 17:56:21 +00:00
jdolecek 128eb4ec07 bring in 'syscall' and 'misc' example modules from former /usr/share/lkm,
updated to current LKM programming style
even through the modules do work, they are not built nor installed by default -
they are here solely as a help to potential LKM writer
2000-12-11 13:48:10 +00:00
jdolecek 384e2929b7 nuke, mostly obsolete 2000-12-11 09:11:22 +00:00
fvdl eb1e790ed3 Add linux_fdio.c and linux_hdio.c 2000-12-10 14:15:04 +00:00
jdolecek 5092a332a5 add svr4_syscall.c for i386 2000-12-09 11:21:41 +00:00
jdolecek 6e8525076c binary emulations are now loadable, the necessary framework changes are
all there; what is needed now is to ensure the LKMs work on other
ports - this may need changes to MD or sys/compat/* code
2000-12-08 23:08:35 +00:00
jdolecek cced9cc42c dive to exec/ too 2000-12-08 23:06:34 +00:00
jdolecek 413bdf22a1 add build glue for exec LKMs
for now, only i386 linux_elf is actually installed, since the others have
not been tested yet
2000-12-08 23:05:33 +00:00
jdolecek ea3b73ae69 slight comment fix 2000-12-08 20:20:23 +00:00
jdolecek e6c64e055f add build glue for supported emulations
since only linux compat on i386 is installed, only that LKM is actually
installed (LKMs are build for all platforms as appropriate though)
further changes to compat code would need to happen to make this usable
also for other plaforms or emulations
2000-12-08 20:15:11 +00:00
jdolecek e1e2b1da36 one less: lfs is now loadable as LKM 2000-11-30 16:01:44 +00:00
jdolecek 134b0b2c0f lfs is now loadable as LKM 2000-11-30 16:00:55 +00:00
veego 21dea2100c Resolve conflicts. 2000-05-03 11:12:03 +00:00
simonb 4fd796d7d7 Add prototypes for the xxx_lkmentry() functions, and enable WARNS=1. 2000-03-21 11:45:56 +00:00
wrstuden fab192f2d2 Add overlay, a layered file system which overlays itself on
the underlying fs, rather than exporting it to another part of the
directory name space.
2000-01-20 19:06:13 +00:00
veego 2e825f9c4e Resolve conflicts and change the Makefile to reflect the move of ipl.h
to sys/netinet (we need it now in usr.sbin/ipf).
1999-12-12 11:18:46 +00:00
chs f3a668ed84 eliminate the PMAP_NEW option by making it required for all ports.
ports which previously had no support for PMAP_NEW now implement
the pmap_k* interfaces as wrappers around the non-k versions.
1999-09-12 01:16:55 +00:00
jdolecek a2fff20b0d properly end the comment with NetBSD RCS id 1999-09-05 10:57:01 +00:00
ross 3844ce8324 Spelling. 1999-08-25 00:59:08 +00:00
wrstuden f8ea65369c Make nullfs's lkm right. 1999-07-08 01:51:57 +00:00
tron ce798896e4 Compile all VFS LKMs on all ports. 1999-05-18 23:06:02 +00:00
tron 91a9233c06 Build "ntfs" LKM only on machines for which Windows NT is available. 1999-05-12 12:05:56 +00:00
tron f9711dafa5 Fix typos. 1999-05-12 09:00:11 +00:00
tron 12c31842c9 Add loadable kernel module for NTFS. 1999-05-12 07:46:42 +00:00
scottr 1a3484fe3c This should have been committed in the previous round, but was
left behind.  Fixes PR 7310.
1999-04-03 08:28:50 +00:00
scottr 5364339415 If'n you change the name of the .o file, you really ought
to change the entry point, too.
1999-03-31 20:45:06 +00:00
scottr e3efa6ea27 Cleanups from Hauke. 1999-03-27 07:09:30 +00:00
scottr 2822cc5fb0 RCS ID police (missed this earlier) 1999-03-27 05:48:53 +00:00
scottr 90dbb20db3 Descend into the arch directory. 1999-03-26 22:32:03 +00:00
scottr 7f04a59417 Build in ${MACHINE} if it exists. 1999-03-26 22:31:19 +00:00
scottr fa41088394 Build iwm 1999-03-26 22:27:59 +00:00
scottr 0a9f099457 IWM floppy disk driver module written by Hauke Fath 1999-03-26 22:25:40 +00:00
ross 4281edcb66 Enable this lkm on alpha. 1999-03-18 06:01:42 +00:00
christos 902b3b95dc PR/7143: Jaromir Docelek: add procfs_cmdline... 1999-03-12 18:47:35 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
cjs c890eba0b7 Change NOMAN=yep to MKMAN=no. 1999-02-12 05:41:57 +00:00
mrg d3224441a0 merge ipf 3.2.10 1998-11-22 14:41:29 +00:00
mrg de6cfc033a don't need our own lkmenodev anymore... 1998-11-17 01:46:10 +00:00
bouyer cf5be93206 Add ext2fs. 1998-10-04 11:45:44 +00:00
bouyer ecb13d449a LKM for ext2fs ... better late than never :) 1998-09-29 10:26:58 +00:00
rvb 5b1d1ef004 Coda lkm 1998-09-25 15:01:56 +00:00
veego e3d44c6e25 Resolve conflicts from the import. 1998-07-12 15:11:50 +00:00
veego a5aa2efa3d Resolve conflicts from the import of IPFilter 3.2.7. 1998-05-29 20:32:01 +00:00
veego 82423e3d01 Resolve conflicts 1998-05-17 16:50:15 +00:00
thorpej 3ef999a19b Make sure all LKMs get built with -DUVM and -DPMAP_NEW if so configured
in mk.conf.
1998-03-28 23:58:44 +00:00
mrg d59aba65d9 build msdosfs LKM with UVM support. pr#5014 1998-03-10 06:53:36 +00:00
fvdl e5bc90f40c Merge with Lite2 + local changes 1998-03-01 02:20:01 +00:00
thorpej 19024ae2fb Don't vfs_opv_init_*(); this is properly handed by vfs_attach(). 1998-02-18 07:18:21 +00:00
perry ba7b5f16ff add -DPMAP_NEW if PMAP_NEW is on in mk.conf 1998-02-18 03:54:58 +00:00
mrg 6a324bffbd make these work with -DUVM 1998-02-11 11:57:21 +00:00
mikel 54013b0a5c add ipmon(8) support, from Matthias Scheler in PR kern/4860 1998-02-04 07:38:55 +00:00
mrg 84ecff38c2 merge ip-filter 3.2.1 1997-11-14 12:40:06 +00:00
mrg 3f0ebb2220 sigh. merge ipfilter 3.2 onto the trunk. merge to the branch was a mistake. 1997-10-30 15:39:56 +00:00
lukem f984b5a5dc use CPPFLAGS instead of CFLAGS 1997-10-26 21:50:53 +00:00
is 8e50add957 Make nullfs and umapfs LKMs link again.
From PR4297 by Matthias Scheler.
1997-10-21 16:16:02 +00:00
veego 4508fb4354 Resolve conflicts from the merge of ipf 3.2beta5. 1997-09-21 18:00:54 +00:00
explorer 000490be57 reorder files in Makefile, nothing major 1997-08-13 05:46:57 +00:00
kleink 20b33f1d4c When creating new device nodes based on the major number of the LKM slot we
have been assigned, try to remove any existing ones first; otherwise loading
the LKM could fail with EEXIST.  Fixes PR kern/3868.

Why was this call dropped between v3-2alpha7 and v3-2beta1?
1997-07-19 22:42:18 +00:00
kleink 24b86eb3f3 Sync if_ipl_lkmentry()'s prototype with the function's actual name; from
Matthias Scheler in PR kern/3868.
1997-07-19 15:35:27 +00:00
veego 5e57562634 New adosfs lkm, which will only be build on the Amiga. 1997-07-08 16:46:24 +00:00
veego 91a6533462 lkm for the adosfs. From Matthias Scheler in pr#3726 1997-07-08 16:44:49 +00:00
thorpej a6c52a705c Fix a case where an error condition wouldn't be indicated in the dispatch
routine.  A few minor KNF'ish stylistic changes while I'm here.
1997-07-06 22:19:43 +00:00
thorpej 5b434b6e72 Under no circumstances should we #define iplread to an error stub; ip_fil.c
already has the correct code to return ENXIO if logging is not enabled.
1997-07-06 22:13:49 +00:00
thorpej 928ff81b87 Need ip_auth.o 1997-07-06 22:12:56 +00:00
darrenr a7a52d12c8 fix conflicts from import 1997-07-05 05:52:39 +00:00
thorpej 8b4b26e8d9 Fix several bugs/warnings:
- Pull in correct headers to get types.
- Garbage-collect some unused code.
- Add missing return values.
- Add parenthesis around assignments in conditionals.
1997-05-28 02:49:06 +00:00
thorpej b987e82127 CVS munched date on copyright; correct it. 1997-05-28 02:11:10 +00:00
thorpej 6ef2799147 Garbage-collect unneeded CFLAGS. 1997-05-28 02:10:28 +00:00
thorpej bbf6e6fb4d Fix a typo. 1997-05-28 00:22:43 +00:00
thorpej 9062a97000 Resolve conflicts from merge of 3.2a7, take 2. 1997-05-28 00:22:15 +00:00
jtc 69f811b13c copyright assigned to TNF 1997-05-19 23:26:32 +00:00
jtc 9784de474e copyright assigned to TNF 1997-05-19 22:11:12 +00:00
christos 48729af76f We don't want iplread to change to enodev() when we don't have IPFILTER_LOG
defined.
1997-04-15 18:58:27 +00:00
thorpej 04bfe534ed Fix botches in last IP Filter update that broke the LKM. From
Matthias Scheler, PR #3428.
1997-04-10 18:54:46 +00:00
thorpej f090be431e Use control device names provided by <netinet/ip_fil.h> 1997-03-29 19:51:45 +00:00
thorpej 85a327bb3b Make this compile again in light of recent changes:
- adjust for new ipl_attach()/ipl_detach() names.
	- In ipl_load(), so not implicitly call ipl_attach(), since
	  doing so would be inconsistent with the behavior exhibited
	  by the statically-configured version.
1997-03-29 03:03:08 +00:00
thorpej 99f4b72f6c Resolve conflicts from merge.
XXX doesn't compile yet, but that will require some other changes, which
XXX I want to make separately.
1997-03-29 01:42:33 +00:00
darrenr fe3bc025d0 Bring in entire 3.2alpha2 source tree 1997-03-27 15:13:58 +00:00
thorpej bf13067994 Give the entry point of this LKM a sane name, as suggested by
Matthias Scheler <tron@lyssa.owl.de> in PR #3140.
1997-02-21 21:11:16 +00:00
scottr 7387b50dc5 _All_ compat LKMs are broken. Pointed out by mrg. 1997-02-18 15:31:51 +00:00
scottr a3797a2459 The union LKM is currently broken. Do not build it. 1997-02-18 06:08:51 +00:00
scottr 3a2dd27260 The compat_sunos LKM is currently broken. Do not build it. 1997-02-18 06:08:50 +00:00
mrg b5f7cf1c76 if we fail to attach, abort before attaching the hook, not after. 1997-01-12 06:06:03 +00:00
veego d61e3f8c25 ipl[attach|detach]->ipfilter[attach|detach] for the pseudo-device change 1997-01-08 21:45:39 +00:00
mrg 615fc0a880 add netinet... 1997-01-07 10:48:19 +00:00
mrg f9eeb3865a oops; forgot these. 1997-01-07 10:47:35 +00:00
mrg 85f84f08cd initial import of darren reed's ip-filter, version 3.1.2. 1997-01-05 13:26:10 +00:00
explorer 22523c6ffd Update TODO list for lkm stuff 1996-11-05 02:34:24 +00:00
explorer 4f2a5a3b7d remove deadfs and fifofs 1996-11-05 02:30:16 +00:00
explorer 0c69983b3e remove the deadfs 'filesystem' from the lkm tree. This wasn't supposed to make
it in there anyway.
1996-11-05 02:29:29 +00:00
explorer 5b1de90fba remove the fifo 'filesystem' from the lkm tree. This wasn't supposed to make
it in there anyway.
1996-11-05 02:27:19 +00:00
explorer 239580d5d0 Clean up changes to make sys/lkm build again 1996-10-22 19:43:13 +00:00
explorer 03d7e64aaa Make this compile again for i386 1996-10-22 19:32:06 +00:00
explorer 6b59a239ae Change MACHINE to MACHINE_ARCH, to properly find the machine-dependant sunos
files; closes pr port-m68k/2881 from David Carrel
1996-10-22 19:09:50 +00:00
cgd 5094e48557 don't include <machine/exec.h> here. Even if it's necessary,
it's already included by <sys/exec.h>.
1996-10-07 19:55:07 +00:00
mrg f4bfba2364 add compat svr4 and sunos modules. the sunos module will not work
very well due to places in the kernel using COMPAT_SUNOS (this may
also be true for svr4).
1996-08-28 06:17:23 +00:00
explorer 97227d64b3 find ../sys relative to src dir, not obj dir 1996-08-27 23:42:01 +00:00
explorer 576f04f8b1 Clean up some unneeded Makefile variables 1996-08-27 21:44:32 +00:00
mrg 3b78ac59ad Update these to build in a consistant manner, and not assume /sys, etc.
Should work with obj dirs but not heavily tested.
1996-08-23 05:38:53 +00:00
explorer f190d66387 Add the lkm stuff I've been working on to the tree.
This mostly works -- see the README file in sys/lkm for more information
on what does and doesn't.  I'm putting this in here mainly to help speed
development and such to make this useful sooner.
1996-08-22 20:18:07 +00:00