Commit Graph

591 Commits

Author SHA1 Message Date
pgoyette 67721744d0 For non-rump modules, enable HDMI audio device.
No impact to rump modules, and no impact to kernels which have the
hdafg driver built-in.
2017-06-16 04:16:18 +00:00
pgoyette a0a5fffd5f Descend into SUBDIR to actually build the wsbell module.
Missed in previous commit - thanks kre@
2017-06-12 01:01:01 +00:00
pgoyette 9c3a54f157 Actually create the wsbell(4) module 2017-06-11 22:21:33 +00:00
pgoyette 01d1a64d4c Define the NWSMUX symbol for the spkr module (for modules, we cannot
use the wsmux.h file created by the needs-flag in sys/conf/files)
2017-06-11 05:28:28 +00:00
pgoyette 1e50c1dc0e Add the modules for audio, midi, and sequencer 2017-06-01 09:58:27 +00:00
mbalmer 934d80f778 always put the module on the stack 2017-05-20 09:46:17 +00:00
mbalmer d191c429ad Only load a module if it is not already loaded in a state (much like userland
Lua handles require).
Fixes PR kern/52226.
2017-05-20 08:31:13 +00:00
mbalmer 3c246ec040 Avoid possible null pointer dereferencing.
Fixes PR kern/52225.
2017-05-11 07:34:27 +00:00
sevan 3906dcf33e Add luareadhappy to the list. 2017-04-23 23:39:42 +00:00
riastradh c248891802 Modularize ualea(4).
Unclear why we have a separate xyz.ioconf for module and XYZ.ioconf
for rump component, but at least xyz_modcmd obviates the need for
xyz_component.c (though evidently the latter could have been replaced
anyway by RUMP_COMPONENT=ioconf in the rump component Makefile).
2017-04-19 00:01:38 +00:00
riastradh e67dab8d81 Can't destroy pb until we're done using it. 2017-04-16 17:45:12 +00:00
kamil 0c8a82569b Build without installation example lua kernel module: luareadhappy 2017-04-15 18:22:35 +00:00
kamil 502c2ed2ba Add new example kernel module in Lua luareadhappy
This example presents a C module with its device (/dev entry) and its
content generator with algorithm defined in Lua state. The Lua state can
be changed dynamically from userland, without interruption of read(2) over
the device.

This is an example how to call Lua code from C.
2017-04-15 04:27:30 +00:00
christos 8918be50e1 Add auxv 2017-03-30 20:16:42 +00:00
jdolecek 44a9ce73ed add vioscsi to the list (disabled) 2017-03-25 23:17:07 +00:00
jdolecek bdf17da623 add support for loading vioscsi driver dynamically 2017-03-25 18:15:31 +00:00
knakahara 706b73f634 add missing files. 2017-02-16 08:23:35 +00:00
knakahara 939a415a7d add l2tp(4) L2TPv3 interface.
originally implemented by IIJ SEIL team.
2017-02-16 08:12:43 +00:00
christos 8b431b6f84 Define MODULAR so we can have syscalls autoload after the module autoloads.
XXX: This is toxic, and currently caused LOCKDEBUG crashes.
2017-01-26 01:32:34 +00:00
maya b8f12c7fce Check pmf_device_register return value. NFC
Appeases static analyzers.
2017-01-20 12:25:07 +00:00
christos 105115c2ab Don't define PT_{S,G}ETREGS on the command line. Yes, it can make things
compile, but when it does, it is always bogus!
2017-01-13 06:04:48 +00:00
rmind 0b635e7c1d NPF: implement dynamic handling of interface addresses (the kernel part). 2017-01-02 21:49:51 +00:00
christos fd60c59b96 oops forgot to commit this one. 2016-12-28 13:50:55 +00:00
pgoyette 3d9d9fc2de Create a single combined module for spkr_pcppi and spkr_audio, and
build it for all architectures.

By doing this, we can handle pcppi, audio, or both attachments with
non-built-in modules.

XXX Still to do: the module currently cannot be unloaded, and the
XXX spkr device(s) currently cannot be detached.  (Really, two
XXX sides of the same problem.)
2016-12-15 06:48:14 +00:00
christos e4bd8c59b9 delete spkr_synth module 2016-12-15 04:37:00 +00:00
nat b2644509c2 Fix path to files.audio. 2016-12-12 13:31:13 +00:00
nat c885b4911a Need to include audiobell.c 2016-12-10 05:09:10 +00:00
pgoyette d77ef3c058 Ooopss, missed the Makefile 2016-12-10 00:40:27 +00:00
pgoyette 21a19d30ca Create a new module for the synthesized speaker(4).
XXX Device module autoload (invoked when the /dev/speaker is opened, and
XXX no driver exists) will not find this module.  On i386 and amd64, the
XXX autoload will find the spkr module (spkr0 at pcppi0) and that module
XXX will be autoloaded.  For other architectures, either include the
XXX "spkr0 at audio0" in your config file, or manually load this new
XXX spkr_synth module using modload(8).
2016-12-10 00:39:40 +00:00
christos bbe824547d sync with latest. this should either be called spkr_pcppi or made to work
with both busses.
2016-12-09 06:12:03 +00:00
christos 658319f6a2 ditch ptree and use lpm 2016-12-09 02:41:09 +00:00
christos 2bfcd885c5 Add spkr_pcppi.c 2016-12-09 02:22:56 +00:00
nat ae6f65cc33 Revert to previous. Add PCPPISPEAKER flag to fix build. 2016-12-08 23:22:18 +00:00
nat 3af52eea80 Fix building of the spkr module. The module now is the synthesized speaker.
Reported by joerg@
2016-12-08 21:42:42 +00:00
pgoyette 86b970f505 Build the newly-created bufq_* modules 2016-11-16 00:49:27 +00:00
riastradh 2903f566e2 Reorganize SRCS lists for libcompat, compat.kmod, sysv_ipc.kmod.
- Share lists between the libcompat and module makefiles.
- Include some omitted entries in compat.kmod:
  . if_43.c
  . kern_sa_60.c
  . kern_time_30.c
  . rndpseudo_50.c
  . rtsock_14.c
  . rtsock_50.c
  . rtsock_70.c
  . uipc_syscalls_40.c
  . uipc_syscalls_50.c
- Exclude a (harmless) spurious entry in sysv_ipc.kmod on LP64 systems:
  . kern_ipc_10.c

Should fix broken ifconfig on modular current kernels.

ok pgoyette
2016-11-03 04:26:58 +00:00
pgoyette a60b99094c * Split sys/kern/sys_process.c into three parts:
1 - ptrace(2) syscall for native emulation
        2 - common ptrace(2) syscall code (shared with compat_netbsd32)
        3 - support routines that are shared with PROCFS and/or KTRACE

* Add module glue for #1 and #2.  Both modules will be built-in to the
  kernel if "options PTRACE" is included in the config file (this is
  the default, defined in sys/conf/std).

* Mark the ptrace(2) syscall as modular in syscalls.master (generated
  files will be committed shortly).

* Conditionalize all remaining portions of PTRACE code on a new kernel
  option PTRACE_HOOKS.

XXX Instead of PROCFS depending on 'options PTRACE', we should probably
    just add a procfs attribute to the sys/kern/sys_process.c file's
    entry in files.kern, and add PROCFS to the "#if defineds" for
    process_domem().  It's really confusing to have two different ways
    of requiring this file.
2016-11-02 00:11:59 +00:00
skrll f2ef31cb48 PR kern/51514: ptrace(2) fails for 32-bit process on 64-bit kernel
Updated from the original patch in the PR by me.
2016-10-19 09:44:00 +00:00
skrll 01368dbcc2 Sort entries within conditional blocks 2016-10-15 12:38:03 +00:00
pgoyette 01b31fcf1e For now, disable all the newly-created ld(4) related modules. We need
to come up with a better way to handle attachment-specific modules, and
possibly a better directory structure for modules in general, as the
current mechanism doesn't scale.
2016-09-27 20:52:43 +00:00
pgoyette fb351842ae Add module build infrastructure for ld and its attachments 2016-09-27 03:53:06 +00:00
christos 8962a97716 Add KTRACE 2016-09-17 02:45:24 +00:00
jdolecek 8eedc00a82 make it possible to load nvme(4) as module to ease testing; currently somewhat
non-optimal, since it includes the ld(4) code also and hence requires the
kernel config to have 'no ld'
2016-09-16 11:35:07 +00:00
pgoyette 06402e0a42 Move kern_ctf.c into the dtrace_fbt module (the only place it is used)
rather than including in kernels with KDTRACE_HOOKS defined.  Update
the dtrace_fbt module to depend on the zlib module.

Bump kernel version to avoid module mismatch.

Welcome to 7.99.38 !
2016-09-16 03:10:45 +00:00
pgoyette 9a575d933d Move tun.c into the module's own directory, since it is specific to the
module subsystem.
2016-09-10 03:26:10 +00:00
pgoyette eb2b2a3e77 Add a dummy "tun" module, whose only job is to trigger an autoload of
required module "if_tun".  This allows access to /dev/tunN to autload
the require interface module.

XXX There's might be a better place/name for net/tun.c
2016-09-10 02:20:10 +00:00
knakahara 56d7b3a061 add required files to if_gif module. (unify to rump) 2016-08-18 11:41:58 +00:00
jdolecek a2f72e0398 add ext2fs_xattr.c 2016-08-12 19:07:14 +00:00
christos 09ba5d0754 missed this one 2016-08-07 17:33:04 +00:00
christos 4b4b4456f8 add new modules 2016-08-07 14:27:38 +00:00