Commit Graph

621 Commits

Author SHA1 Message Date
pgoyette
0484fb2f3f On the off chance that someone tries to use the modular version of the
ld(4) driver, provide an ld.ioconf file which will declare the global ld_cd
2018-02-21 08:36:36 +00:00
maya
aba096954d Code is fixed, so hiding the warning is not necessary any more. 2018-02-19 16:21:36 +00:00
joerg
61efc2e9d5 Simplify and make the GCC check more precise at the same time. 2018-02-12 22:18:36 +00:00
adam
0f74ee8d8c Fix building with MKGCC=no 2018-02-12 20:47:09 +00:00
martin
399aaa9545 Avoid gcc 6 specific options when compiling with gcc 5 2018-02-06 12:58:17 +00:00
mrg
fea810f4a7 pf_table.c has many left-shift of negative value issues. 2018-02-06 09:20:50 +00:00
christos
3c2a1cdc76 use the intermediate bus 2018-01-27 00:23:19 +00:00
pgoyette
6d112e439d Create amdsmn(4) amd amdzentemp(4) modules for X86 2018-01-25 23:40:06 +00:00
skrll
ac34435581 Remove port-acorn26
OK core@
2018-01-24 09:04:40 +00:00
mrg
f2b04ca083 implement 32-bit compat support for raidframe.
convert several raidframe ioctls to be bitsize idempotent so that
they work the same in 32 and 64 bit worlds, allowing netbsd32 to
configure and query raid properly.  remove useless 'row' in a few
places.  add COMPAT_80 and put the old ioctls there.

raidframeio.h:
  RAIDFRAME_TEST_ACC
  - remove, unused
  RAIDFRAME_GET_COMPONENT_LABEL
  - convert to label not pointer to label
  RAIDFRAME_CHECK_RECON_STATUS_EXT
  RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT
  RAIDFRAME_CHECK_COPYBACK_STATUS_EXT
  - convert to progress info not pointer to info
  RAIDFRAME_GET_INFO
  - version entirely.
raidframevar.h:
  - rf_recon_req{} has row, flags and raidPtr removed (they're
    not a useful part of this interface.)
  - RF_Config_s{} and RF_DeviceConfig_s{} have numRow/rows removed.
  - RF_RaidDisk_s{} is re-ordered slightly to fix alignment
    padding - the actual data was already OK.
  - InstallSpareTable() loses row argument

rf_compat32.c has code for RF_Config_s{} in 32 bit mode, used
by RAIDFRAME_CONFIGURE and RAIDFRAME_GET_INFO32.

rf_compat80.c has code for rf_recon_req{}, RF_RaidDisk_s{} and
RF_DeviceConfig_s{} to handle RAIDFRAME_FAIL_DISK,
RAIDFRAME_GET_COMPONENT_LABEL, RAIDFRAME_CHECK_RECON_STATUS_EXT,
RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT,
RAIDFRAME_CHECK_COPYBACK_STATUS_EXT, RAIDFRAME_GET_INFO.

move several of the per-ioctl code blocks into separate functions.

add rf_recon_req_internal{} to replace old usage of global
rf_recon_req{} that had unused void * in the structure, ruining
it's 32/64 bit ABI.

add missing case for RAIDFRAME_GET_INFO50.

adjust raid tests to use the new .conf format, and add a case to
test the old method as well.

raidctl:
deal with lack of 'row' members in a couple of places.
fail request no longer takes row.
handle "START array" sections with just "numCol numSpare", ie
no "numRow" specified.  for now, generate old-style configuration
but update raidctl.8 to specify the new style (keeping reference
to the old style.)

note that: RF_ComponentLabel_s::{row,num_rows} and
RF_SingleComponent_s::row are obsolete but not removed yet.
2018-01-18 00:32:48 +00:00
knakahara
81ed6ce29d Fix agr(4) module build. Reviewed by pgoyette@n.o, thanks. 2018-01-16 07:34:12 +00:00
christos
63d9fe88a0 fix autofs pseudo device 2018-01-09 16:18:35 +00:00
christos
b985414b8f Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet
2018-01-09 03:31:12 +00:00
christos
8ad407c2b7 PR/52848: Brad Spencer: Add module glue for AM2315 and SI70xx drivers 2017-12-29 02:14:25 +00:00
martin
63f6d58f43 Fix cargo cult ioctl implementation for LUAINFO: the name and desc fields
are arrays, not pointers, so don't use copyoutstr on them, but instead
copyin/copyout the whole array of structures.
Fixes PR 52864 for me (on sparc64).
2017-12-26 12:43:59 +00:00
pgoyette
9921032f58 Use config(1) and IOCONF= to generate most of the auto-config data
structures.  (Note that bin/52823 documents the reasons for still
requiring hand-crafted cfattach structures.)
2017-12-16 06:39:07 +00:00
pgoyette
78cc8eafa8 Include the flash_mtd_parts in the nand module. Without this, the module
fails to load because of undefined linker symbol flash_attach_mtdparts

XXX pullup to netbsd-8
2017-12-09 22:42:17 +00:00
pgoyette
2dd28fa0fe Split ip_ecn code into its own module, so it can be shared between
gif(4), stf(4), and ipsec(4).  Without this, loading the if_gif
module can result in redefined global symbols if either ipsec(4) or
stf(4) but not gif(4) is built into the kernel.

Fixes PR kern/52795 (as reported by martin@ via irc).

XXX pullup to netbsd-8
2017-12-09 08:03:06 +00:00
jdolecek
f51b425f83 again remove mistakely committed debug flags 2017-12-03 11:49:32 +00:00
jdolecek
3ff4076519 update from HEAD 2017-12-03 11:38:58 +00:00
jmcneill
277e74edfd Build nand_toshiba.c 2017-11-15 00:48:42 +00:00
christos
aa49aa7970 This also needs INET6!
XXX: pullup-8
2017-09-17 20:37:17 +00:00
kamil
a69b333e73 Remove the filesystem tracing feature
This is a legacy interface from 4.4BSD, and it was
introduced to overcome shortcomings of ptrace(2) at that time, which are
no longer relevant (performance). Today /proc/#/ctl offers a narrow
subset of ptrace(2) commands and is not applicable for modern
applications use beyond simplistic tracing scenarios.

This removal will simplify kernel internals. Users will still be able to
use all the other /proc files.

This change won't affect other procfs files neither Linux compat
features within mount_procfs(8). /proc/#/ctl isn't available on Linux.

Remove:
 - /proc/#/ctl from mount_procfs(8)
 - P_FSTRACE note from the documentation of ps(1)
 - /proc/#/ctl and filesystem tracing documentation from mount_procfs(8)
 - KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9)
 - source code file miscfs/procfs/procfs_ctl.c
 - PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h
 - KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h
 - PSL_FSTRACE (0x00010000) from sys/sys/proc.h
 - P_FSTRACE (0x00010000) from sys/sys/sysctl.h

Reduce code complexity after removal of this functionality.

Update TODO.ptrace accordingly: remove two entries about /proc tracing.

Do not keep legacy notes as comments in the headers about removed
PSL_FSTRACE / P_FSTRACE, as this interface had little number of users
(close or equal to zero).

Proposed on tech-kern@.

All filesystem tracing utility users are encouraged to switch to ptrace(2).

Sponsored by <The NetBSD Foundation>
2017-08-28 00:46:06 +00:00
maxv
2e5cfb022c Don't build the ibcs2 module on i386. 2017-08-11 12:58:14 +00:00
maxv
bd36ac747c Remove compat_ibcs2 from i386. After a discussion on port-vax, it turns
out that compat_ibcs2 does not implement the iBCS2 standard - which is
x86-specific - but rather SVR3. Our real iBCS2 implementation was a
mixture of compat_ibcs2 and compat_svr4, and was only partial. Keeping
support for this in i386 is totally irrelevant today. I also asked on
port-i386 but didn't wait long.

The main issue is that compat_ibcs2 should have been called compat_svr3.
But CVS does not support renaming files, and moving things around is both
painful and tiring, even more so when no one seems to be interested in
doing this work or in the feature at all. For now compat_ibcs2 is available
on Vax and will stay, until someone (not me) cleans it up.
2017-08-09 18:45:30 +00:00
maxv
74ea430004 Move arch/i386/i386/freebsd_* into compat/freebsd/. COMPAT_FREEBSD is
i386-specific.
2017-08-01 14:43:54 +00:00
maxv
3552636d5c Don't build the svr4 module on i386. 2017-08-01 13:49:50 +00:00
nat
bb94751b03 Audio now compiles with WARNS=5, so there is no need to specify WARNS=3. 2017-07-30 00:53:57 +00:00
maxv
ec919cac1c Remove i386. By the way, it looks like several architectures are missing
here.
2017-07-29 12:03:37 +00:00
maxv
02de58a76a Remove exec_aout support in compat_freebsd. The only reason we still have
compat_freebsd is because of tw_cli, and it is an elf32 binary (could test,
manuel sent it to me).
2017-07-29 10:39:48 +00:00
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