Commit Graph

316 Commits

Author SHA1 Message Date
jdolecek
8ad945a36b add freebsd_fork.c 2002-11-28 21:55:48 +00:00
lha
f882e535ec deal with the .s -> .S change for i386 2002-11-23 02:15:45 +00:00
mrg
20998b4001 vnd.c
- allow vnddetach() to return EBUSY if any vnd's are currently initialised.
lkm:
- add new 'dev' directory, initially with just a 'vnd' LKM.  for now, the
vnd lkm driver requests 4 devices....

XXX: vnd should be converted to a psuedo-device that creates & deletes
instances of itself (vnd0, vnd1, etc) when vnconfig -c/-u are called,
then the vnd lkm driver can not be limited to '4' by default.
2002-11-16 08:10:48 +00:00
jdolecek
cee43b67cc add generic linux compat ELF copyargs function
this gives:
* linux sysconf(_SC_CLK_TCK) gives correct value for linux binaries (hz)
  even if hz != 100
* glibc gets proper information on real/effective uid and enables
  secure mode for suid binaries

g/c LINUX_COPYARGS_FUNCTION, replaced by linux ELF copyargs function
g/c alpha-specific linux ELF copyargs function and linux ELF defines
2002-11-13 15:16:27 +00:00
fvdl
b3e87c44a4 Adjust callers to setgate() to match new prototype. 2002-10-06 10:40:04 +00:00
gehenna
13cbb957cf make this compile. 2002-09-06 16:56:13 +00:00
gehenna
77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
christos
0bd5494ee5 make this compile again (thanks mrg) 2002-08-27 14:18:41 +00:00
thorpej
8e9b95428b Revert rev. 1.10 of Makefile and fix the problem properly by adding
-D_KERNEL -D_LKM to AFLAGS in Makefile.common.
2002-06-02 23:46:49 +00:00
itojun
3ec91458b1 not sure if it is right, but svr4_sigcode.s does not compile on i386 without it.
PR 17121
2002-06-01 20:13:42 +00:00
simonb
02656b2e09 Change retval to be an array of register_t instead of array of int. 2002-06-01 14:07:33 +00:00
thorpej
f944a0674f Remove unnecessary -I$S; bsd.kmod.mk adds -isystem $S 2002-05-30 18:53:14 +00:00
jdolecek
357b304b86 add some procfs files which seem to be needed nowadays 2002-05-25 20:39:50 +00:00
jdolecek
ff2064e0c8 make compat_linux LKM buildable on macppc 2002-05-19 18:18:36 +00:00
mycroft
baf701415e Fix a file name. 2002-04-10 04:21:27 +00:00
mycroft
bdfc53717b Fix SRCS so this compiles again. 2002-04-10 04:12:42 +00:00
enami
101714165d Now linux_sigarray.c is included by newly created linux_signo.c. 2002-04-01 06:54:55 +00:00
oki
e6930c6900 PE/COFF header size is PECOFF_HDR_SIZE, not sizeof(struct exec). 2002-03-29 17:49:21 +00:00
kent
d469e9cf08 Use compat_util with overriding. 2002-03-29 17:09:30 +00:00
kent
2260d0eb5d Copy syscall entries for SYSVSHM to syncronize kernel option. 2002-03-27 20:54:29 +00:00
kent
9392b84ff9 Introduce a new LKM `compat_pecoff'
Add it to SUBDIR.

To enable PECOFF, do the following:
	# modload /usr/lkm/compat_pecoff.o
	*then*
	# modload /usr/lkm/exec_pecoff.o
2002-03-25 06:52:41 +00:00
kent
79decd163e Move 'pecoff' to installable SUBDIR 2002-03-24 15:01:57 +00:00
oki
e60e94456a emul_netbsd is no longer used in exec_pecoff. 2002-03-18 08:16:08 +00:00
martti
83b3487b70 Upgraded IPFilter to 3.4.25 2002-03-14 12:32:36 +00:00
oki
7160cfdbde PE/COFF exec LKM, currently for i386 platform. 2002-03-12 07:47:35 +00:00
fvdl
99d2b6e3ef Add linux_sysctl.c 2002-02-23 16:46:03 +00:00
is
372cac3316 The linux lkm doesn't compile anymore on m68k 2002-02-16 11:02:37 +00:00
mrg
993c6eb6ac need core_elf32.c as well, now. 2002-02-10 16:25:49 +00:00
mrg
42aa4bc31d use MACHINE_ARCH for sparc & sparc64. 2002-02-10 16:25:35 +00:00
mrg
13ba5ca255 the exec LKMs work on sparc64. 2002-02-10 15:46:28 +00:00
mrg
d3fc678205 look in sys/arch/${MACHINE}/${MACHINE} as well as ${MACHINE_ARCH} 2002-02-10 15:43:41 +00:00
mrg
1b9f6c7a2e build svr4_sigcode.s on sparc 2002-02-10 15:42:57 +00:00
mrg
cf5b2d8368 build sunos_machdep.c and sunos_sigcode.s on sparc & sparc64 2002-02-10 15:41:58 +00:00
mrg
34b423fa60 don't build compat_aout LKM; hasn't been tested. 2002-02-10 15:40:32 +00:00
fredb
c26310d581 whitespace cleanup 2002-02-05 15:28:03 +00:00
fredb
31543d3f23 Add an explicit transformation for iwm.s -> iwm.o, patterned after the
kernel's ${NORMAL_S}. In particular, we need the ${CPPFLAGS} from
<bsd.kmod.mk> to support non-self-hosted builds. (Changing iwm.s to iwm.S
would also work.)
2002-02-05 15:26:52 +00:00
martti
a54225fdf9 Added missing -DIPFILTER_LKM 2002-01-24 13:50:32 +00:00
martti
b9920d0f43 Upgraded IPFilter to 3.4.23 2002-01-24 08:21:30 +00:00
thorpej
14164755e0 Switch ELF emulations to ELF core files. 2002-01-04 06:50:59 +00:00
thorpej
3d25834fb6 Fix a typo. 2001-12-14 20:51:01 +00:00
lukem
c10ff7575c YANOMAN= 2001-12-13 01:26:39 +00:00
lukem
b574ee0f82 define NOMAN= once, at the real top level of lkm 2001-12-12 12:06:45 +00:00
lukem
19d9b95273 define NOMAN= once, at the top level 2001-12-12 11:56:05 +00:00
lukem
00255d260d define NOMAN= once, at the top level 2001-12-12 11:44:43 +00:00
tv
8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
jdolecek
4fbc1b008e one more - it would be nice to have LKMs actually working on PowerPC platforms 2001-12-12 00:05:30 +00:00
thorpej
b5ea4050f9 Update for core dump changes. 2001-12-10 19:18:49 +00:00
gmcgarry
6f71c27e26 MACHINE_ARCH -> MACHINE_CPU 2001-12-10 07:27:52 +00:00
gmcgarry
47e4542449 Pull in <bsd.own.mk> early so we can use MACHINE_CPU. Use
MACHINE_CPU instead of MACHINE_ARCH.
2001-12-10 07:26:47 +00:00
thorpej
165f442f86 Update for "coredumps now exec-format/emulation specific". 2001-12-08 00:37:07 +00:00
jdolecek
fd7c36bef3 need compat_exec.c for some old a.out formats 2001-11-26 20:38:15 +00:00
lukem
f5e6ca8797 add RCSIDs 2001-11-12 23:22:57 +00:00
jdolecek
d1842b740a Restructure to the lkm/compat/Makefile way - the tested & installed
modules are on top, rest is added .if !make(install). This will avoid
such silly mistakes as rev. 1.7/1.8.
2001-11-01 19:32:53 +00:00
tron
7a726f828b Fix botch in last commit which caused some of the "exec" LKMs not to be
built.
2001-11-01 13:41:42 +00:00
jdolecek
d58125dd1f kill one more duplicate 2001-10-31 21:15:43 +00:00
jdolecek
f15ae836f3 kill duplicates 2001-10-31 21:13:23 +00:00
jdolecek
76dc75c365 svr4 compat LKMs work on i386 2001-10-31 18:30:18 +00:00
jdolecek
2b5db1a8bb add the compat_util.c goo
XXX should prolly share this with lkm/compat, which has the same thing
2001-10-31 18:28:50 +00:00
jdolecek
060f8eead1 Add the COMPAT_UTIL_OVERRIDE stuff, and (commented out) COMPAT_43 stuff 2001-10-31 18:27:31 +00:00
jdolecek
af8a31dd42 For i386, set gate for fasttraps appropriately when loaded (and
unset on unload), similarily to what i386/machdep.c does #ifdef
COMPAT_SVR4. This makes the svr4 LKM actually work on i386.
XXX kind of ugly, but doing this more generic way would be overkill
2001-10-31 18:25:53 +00:00
jdolecek
36b128126e change obsolete comment
both freebsd_aout and freebsd_elf were confirmed to work, install them
2001-10-27 12:11:17 +00:00
jdolecek
899455e34e freebsd LKM works too 2001-10-27 12:10:02 +00:00
jdolecek
a24e94e460 Move the compat_util.c handling to lkm/compat/Makefile.inc. The users
are expected to set COMPAT_UTIL_OVERRIDE to preferred emulation name
prefix.
Use this for compat_freebsd and compat_linux LKMs.
2001-10-27 12:09:34 +00:00
mrg
711d4aecaa enable aout lkm on sparc & i386 2001-10-10 12:48:49 +00:00
mrg
41d514fe9a framework to build an EXEC_AOUT module. tested on sparc64. 2001-10-10 12:10:10 +00:00
jdolecek
501d75ad7f g/c obsolete comment 2001-09-18 20:18:20 +00:00
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