Commit Graph

214 Commits

Author SHA1 Message Date
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