Commit Graph

3829 Commits

Author SHA1 Message Date
martin fe2be58712 Make clock_t unsigned 2015-06-17 14:02:47 +00:00
pgoyette 37202cb966 Update device dependency information - the sysmon major device now depends on the sysmon module itself, not on the individual components. 2015-04-23 23:22:51 +00:00
riastradh 445478ce67 MD rnd.h cleanups. Please let me know if I broke anything! 2015-04-13 21:18:40 +00:00
christos 83807bfa20 Adjust to new trace_{enter,exit} signature. 2015-03-07 18:51:44 +00:00
martin bc4b70818c Handle EINVAL in fault path, so mmap() access past EOF gets SIGBUS. 2015-03-02 11:07:16 +00:00
riastradh fe3ead6a42 Introduce membar_datadep_consumer.
Discussed briefly on tech-kern without objection:

https://mail-index.netbsd.org/tech-kern/2014/11/20/msg018054.html
https://mail-index.netbsd.org/tech-kern/2015/01/07/msg018326.html
2015-01-08 22:27:17 +00:00
macallan b2b0b52232 attach wsdisplay at wsemuldisplaydev instead of every single driver 2015-01-06 17:50:24 +00:00
macallan 5e16b37e90 add pm2fb 2014-12-17 16:53:43 +00:00
manu 239cf5506d Remove unused extended attributes kernel options
As Masao Uebayashi pointed to me, UFS_EXTATTR_AUTOSTART, LFS_EXTATTR_AUTOSTART
and UFS_EXTATTR_AUTOCREATE are not used anywhere in the code. Remove them
as they have been obsolete for a long time:
UFS_EXTATTR_AUTOSTART was replaced by mount -o extattr
LFS_EXTATTR_AUTOSTART was created to match obsolete UFS_EXTATTR_AUTOSTART
UFS_EXTATTR_AUTOCREATE was replaced by sysctl vfs.ffs.extattr_autocreate
2014-11-16 16:01:39 +00:00
manu 2cab231d44 Support for UFS1 extended attributes in GENERIC and GENERIC-like kernels
This change just brings UFS1 extended attribute *support* in the kernel,
extended attributes are not enabled unless three conditions are met:
1) filesystem is UFS1 (newfs -O1)
2) .attribute/system and .attribute/user directories are created at fs root
3) filesystem is mounted with -o extattr

Some GENERIC kernels are obviously memory constrained, the extended
attributes options were not enabled for them, but just added commented out.
(kernel were considered memory constrained if QUOTA option was disabled)
2014-11-12 10:47:20 +00:00
uebayasi 97b488fb90 PCI controller doesn't rely on (depend on) AGP bus, but provide it. If one
specific architecture is known to have some specific AGP implementation, such
suggestion must be done in the "selection" part, not the "definition" part.

This is also an indirect (across bus attachment), circular dependency.
2014-10-17 18:31:07 +00:00
uebayasi c731d93b71 Fix build of RAWHIDE kernel. 2014-10-17 18:14:42 +00:00
uebayasi 69e0a515c4 Missing agp attachment. 2014-10-11 09:16:15 +00:00
apb 497135b74d Avoid splitting sed programs over multiple lines with
<backslash><newline><indentation>.  Use multiple -e options instead.
2014-08-24 18:27:16 +00:00
dholland 4acb6306f5 Systematize (and in many cases, fix) the comments on options COMPAT_NN.
There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
2014-08-23 20:26:56 +00:00
apb 30a0368950 Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
2014-08-16 17:56:30 +00:00
matt 82a12988ef Include <sys/common_int_types.h> if __UINTPTR_TYPE__ is defined. 2014-08-13 22:56:56 +00:00
matt 0b2cac531b Include <sys/common_int_const.h> if __INTMAX_C_SUFFIX__ is defined. 2014-08-13 22:51:58 +00:00
matt 7c5094c243 Include <sys/common_init_limits.h> if __SIG_ATOMIC_MAX__ is defined. 2014-08-13 22:31:06 +00:00
matt 2534797f07 include <sys/common_int_mwgwtypes.h> if __UINT_FAST64_TYPE__ is defined. 2014-08-13 22:25:39 +00:00
matt efe99ca41d include <sys/common_int_fmtio.h> if __INTPTR_FMTd__ is defined 2014-08-13 19:48:17 +00:00
joerg eb6cc7528a Consistently define WARN in a way that passes format string checks, i.e.
always uses the same number of arguments as given in the format string.
2014-08-06 21:57:48 +00:00
dholland f9228f4225 Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
2014-07-25 08:10:31 +00:00
rmind 8011b285c0 Implement MI IPI interface with cross-call support. 2014-05-19 22:47:53 +00:00
matt 6534f89c77 Update PCU_REENABLE for MP. For UP, add a KASSERT to make sure it's never
present.
2014-05-19 07:09:10 +00:00
matt 3d185b2591 When completing a FP trap, only load the FPU if we don't already own it.
While the FPU is on, disable kernel preemption.
2014-05-19 06:55:54 +00:00
martin 13bd467664 No need to re-set MDLWP_FPACTIVE in the REENABLE case - it should be
set already.
2014-05-18 11:04:51 +00:00
martin e16f12d468 Properly handle PCU_REENABLE in fpu_state_load. Hint from Nick Hudson.
This seems to help PR port-alpha/48782 a lot.
2014-05-18 10:43:54 +00:00
matt a035e18049 Cleanup and simplify PCU FP support. Nuke MDLWP_FPUSED. 2014-05-16 19:18:21 +00:00
martin bb4ae2c566 When creating a SIGFPE siginfo for a gentrap, we have no additional info
(ucode) available, and the pal interface does not provide additional
details either. Hardcode the si_code value to FPE_INTDIV, since the only
callers of gentrap in our kernel seem to be the division routines in libkern.
2014-05-16 06:11:21 +00:00
rmind d67ab12c1d pcu(9):
- Remove PCU_KERNEL (hi matt!) and significantly simplify the code.
  This experimental feature was tried on ARM did not meet the expectations.
  It may be revived one day, but it should be done in a much simpler way.
- Add a message structure for xcall function, pass the LWP ower and thus
  optimise a race condition: if LWP is discarding its state on a remote CPU,
  but another LWP already did it - do not cause an unecessary re-faulting.
- Reduce the variety of flags for PCU operations (only PCU_VALID and
  PCU_REENABLE are used now), pass them only to the pcu_state_load().
- Rename pcu_used_p() to pcu_valid_p(); hopefully it is less confusing.
- pcu_save_all_on_cpu: SPL ought to be used here.
- Update and improve the pcu(9) man page; it needs wizd(8) though.
2014-05-16 00:48:41 +00:00
matt 8ed9a6d892 Since all our compilers support __DBL_* and __FLT_*, use them to define
{DBL,FLT}_{DIG,MIN,MAX}
2014-04-21 10:53:47 +00:00
christos 3ff79dba35 adjust to new signature; return consistent stuff. 0 is ok -1 is error 2014-04-05 18:44:32 +00:00
christos e58a356cba make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
2014-03-29 19:28:24 +00:00
christos db89e006d6 kill sprintf 2014-03-26 08:04:19 +00:00
christos b2543b9136 use cpu_{g,s}etmodel 2014-03-24 20:06:31 +00:00
christos 977edcc000 gc sprintf; reduce local static usage of interrupt strings that are only
used once for autoconf printing.
2014-03-21 16:39:29 +00:00
christos 55e6983cb7 kill sprintf 2014-03-20 20:51:40 +00:00
christos 805326e6ff Make all __ALIGNBYTES macros return the same type (size_t) 2014-03-18 17:11:19 +00:00
dholland a68f9396b6 Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
2014-03-16 05:20:22 +00:00
martin 25a68bc40b Allow kernels without tsciic to build. 2014-02-22 18:42:47 +00:00
jdc ad145e06bc Add tsciic and more (commented out) DS20L i2c devices. 2014-02-21 12:24:31 +00:00
jdc 5c7ee0a0a0 Add tsciic, a driver for the DECchip 21272 Core Logic chipset I2C controller.
Tested on DS20L.
2014-02-21 12:23:30 +00:00
martin 21f00ef559 Add raid to the install kernel 2014-01-24 23:59:53 +00:00
christos 17b7583f61 undo rump workaround 2014-01-22 22:52:04 +00:00
tsutsui b258288c6b Add pseudo-device bpfilter to use DHCP client. 2014-01-22 11:45:16 +00:00
christos 433a91548a rumpkernel needs ci_pcc_freq 2014-01-21 20:18:46 +00:00
tsutsui bf03bc8b76 Add and enable radeonfb(4) at pci with options RADEONFB_DEPTH_32.
Requested and tested (with wsfb Xorg server) by Naruaki Etomi in PR/48431.
2014-01-20 15:32:23 +00:00
tsutsui c0061b6a8b Check and set "is_console" property to PCI displays for framebuffer drivers.
Tested on DS15 with radeonfb(4) and XP1000 with vga(4)
by Naruaki Etomi in PR/48431.
2014-01-20 15:05:13 +00:00
tsutsui 183c2ca81d Set a proper address for PCI memspace to make bus_space_mmap(9) work correctly.
Reported and confirmed with radeonfb(4) by Naruaki Etomi in PR port-48431.
2014-01-19 03:44:13 +00:00