Commit Graph

231803 Commits

Author SHA1 Message Date
pooka 3bc1213af0 Release all hypervisor-level resources for rump_etfs paths when the
rump kernel is halted.

Allows a Xen domU to not complain after it was shut down, or something
like that.  Requested by Martin Lucina.
2014-11-17 14:30:31 +00:00
pooka a52077d909 Make ifconfig destroy work if INET6 is present but not attached 2014-11-17 13:58:53 +00:00
joerg 7e52766b55 Needs sys/clock.h. Use a relative include path here to ease src/tools
build.
2014-11-17 10:55:42 +00:00
joerg d98d67102b Make header self-contained. 2014-11-17 10:55:12 +00:00
jmcneill 3a3b267699 clear repeater sel bits before setting -- would cause an issue if we ever switched away from a pixel doubling mode 2014-11-17 10:00:14 +00:00
skrll ec70e3fa7d s/IPL_SCHED/IPL_HIGH/
This allows binuptime to be called from any interrupt handler.
2014-11-17 08:48:59 +00:00
mlelstv 96f40a63cc handle constness better 2014-11-17 07:15:28 +00:00
mlelstv 477be5f2de handle constness 2014-11-17 07:13:42 +00:00
mlelstv 8e3b364b00 Report the argument instead of (null) when opendisk fails. 2014-11-17 07:11:18 +00:00
riastradh eed04e6bf8 Ruminate on security model choices and API design in arc4random(3). 2014-11-17 07:11:00 +00:00
riastradh ac8077340f Note relation of arc4random(3) to rand(3)/random(3). 2014-11-17 06:37:23 +00:00
uebayasi c41ff3d343 Build altq module. 2014-11-17 06:04:01 +00:00
christos 3e16d24bef PR/49207: Kamil Rytarowski: Centralize and rename a bunch of clock constants
and inline functions.
2014-11-17 02:27:26 +00:00
christos 53bfb03cf5 make this compile again. 2014-11-17 02:23:33 +00:00
christos 814298f1c7 add sys/clock.h 2014-11-17 02:16:51 +00:00
christos a95736d447 PR/49207: Kamil Rytarowski: Add sys/clock.h with generic time macros
(derived from clock_subr.h). Keep clock_subr.h with the kernel structures
and functions to reduce diffs, and have clock.h only include standalone
constants and macros.
2014-11-17 02:15:48 +00:00
jmcneill 8aab200cfd report hotplug status for AUDIO_GETDEV fields, only allow playback if a capable display is connected 2014-11-17 01:38:00 +00:00
uebayasi 25e1f6dab9 Define compat modules (but without dependencies yet). 2014-11-17 01:01:57 +00:00
uebayasi 57751c8485 Pre-calc file path len/suffix. Misc. clean up. 2014-11-17 00:53:15 +00:00
jmcneill 9674d0b9f7 Allow for overriding DVI/HDMI detection with a kernel boot arg. Set
hdmi.forcemode=dvi or hdmi.forcemode=hdmi to disable auto-detection.
2014-11-17 00:50:40 +00:00
jmcneill 393b65d3db Add support for DVI displays. Detect HDMI vs DVI mode by looking for a
CEA-861-D extension block in the EDID, and then searching this block for
an HDMI vendor-specific data block (HDMI VSDB).
2014-11-17 00:49:32 +00:00
jmcneill eb56a1b73d add ddc_read_edid_block, which is the same as ddc_read_edid but takes an additional block number argument 2014-11-17 00:46:44 +00:00
jmcneill 3f50a23c18 Parse the extension block count field, and make it available in struct edid_info 2014-11-17 00:46:04 +00:00
plunky 6e4644bb36 since rfcomm_attach_pcb may be called from (soft) interrupt context
(for incoming connections), use kmem_intr_()
2014-11-16 21:34:27 +00:00
wiz 746186406b Grammar. 2014-11-16 20:37:35 +00:00
riastradh 0e26ad0818 Rewrite arc4random(3) with ChaCha20-based PRNG and per-thread state.
Explain the security model in the man page.

No more RC4!

XXX pullup to netbsd-6, netbsd-5
2014-11-16 20:33:04 +00:00
christos 5988775b41 Don't try to extend the offset range on 32 bit machines by treating negative
offsets as positive. It is just confusing.
2014-11-16 20:32:52 +00:00
martin 2e1b1f0f3f Enable puffs 2014-11-16 18:54:52 +00:00
riastradh 565c83be0b Tag the Xen iSCSI modules with `iscsi' in the md.x86 lists. 2014-11-16 18:33:19 +00:00
ozaki-r 433c9fcdef Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.

Discussed with martin@ and riastradh@.
2014-11-16 16:20:00 +00:00
joerg f23a56fd5e Deal with the potential pressence of long double support. 2014-11-16 16:11:33 +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
nakayama c0067af94a Wrap iconv.h also with #ifdef __NetBSD__. 2014-11-16 15:31:12 +00:00
uebayasi 9eb1865390 Fix oops in r1.30. 2014-11-16 15:10:54 +00:00
uebayasi d2824e0952 Simpfily code by assuming suffix is a single character. 2014-11-16 14:57:59 +00:00
uebayasi 8a0d672c53 Refactor. 2014-11-16 14:49:12 +00:00
uebayasi 20fd8a9d0f Consistently wrap long lines in ioconf.c. 2014-11-16 14:26:14 +00:00
tsutsui 5663afc984 Appease gcc48 -Werror=strict-aliasing warning by filling cksum via union.
Discussed in source-changes-d@ thread and tested on TT030.
Should be pulled up to netbsd-7 (if NetBSD/m68k 7.0 will switch to gcc48).
2014-11-16 13:47:52 +00:00
tsutsui bdfce4082b Revert revs 1.29 and 1.30, to make it easier to pullup an alternative fix.
Ok'ed by christos@
http://mail-index.netbsd.org/source-changes-d/2014/11/15/msg007338.html
2014-11-16 13:38:39 +00:00
uebayasi 31da12f323 Set dependency via KERNLDSCRIPT. Don't touch SYSTEM_DEP from outside. 2014-11-16 12:02:55 +00:00
tsutsui 58384ac8c7 Use "-Os -m68020-60" for DBG. It seems to generate smaller objects than -Os.
gcc48 with "-Os":
-rwxr-xr-x  1 tsutsui  wheel  1319596 Nov 16 20:50 obj.atari/instbin

gcc48 with "-Os -m68020-60"
-rwxr-xr-x  1 tsutsui  wheel  1314516 Nov 16 20:49 obj.atari/instbin

This allows ever growing sysinst.fs still fit into 1440KB even with gcc48.
Acually we need a real solution (ustarfs based floppies etc.) soon
but we can work around at least for NetBSD 7.0.

Should be pulled up to netbsd-7 (if NetBSD/m68k 7.0 will switch to gcc48).
2014-11-16 11:54:29 +00:00
martin e0a8fed8ba Enable vnd and putter pseudo devices. 2014-11-16 10:20:21 +00:00
msaitoh c43bb8798b Add C2000 KX and 2.5G. 2014-11-16 09:47:35 +00:00
apb 882341d565 zoneinfo: Import tzdata2014j. [apb 20141116] 2014-11-16 07:17:50 +00:00
apb 6f0a32711d Updated tzdata to 2014j. tzcode2014j is also available. 2014-11-16 07:17:10 +00:00
uebayasi 73810e5d00 config(1): TODO about namespace (esp. options vs. module) 2014-11-16 07:12:34 +00:00
apb 1f80bef788 Import tzdata2014j from ftp://ftp.iana.org/tz/releases/tzdata2014j.tar.gz
Summary of changes in tzdata2014j (2014-11-10 17:37:11 -0800):
  * Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.
  * Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.
  * Some more zones have been turned into links, when they differed
    from existing zones only for older (pre-1970) time stamps.
  * Changes affecting commentary.

Summary of changes in tzdata2014i (2014-10-21 22:04:57 -0700):
  * Pacific/Fiji will observe DST from 2014-11-02 02:00 to 2015-01-18 03:00.
  * A new Zone Pacific/Bougainville, for the part of Papua New Guinea
    that plans to switch from UTC+10 to UTC+11 on 2014-12-28 at 02:00.
  * Since Belarus is not changing its clocks even though Moscow is,
    the time zone abbreviation in Europe/Minsk is changing from FET
    to its more-traditional value MSK on 2014-10-26 at 01:00.
  * The new abbreviation IDT stands for the pre-1976 use of UT+8 in
    Indochina, to distinguish it better from ICT (UT+7).
  * Many time stamps have been corrected for Asia/Ho_Chi_Minh before 1976.
    Asia/Ho_Chi_Minh has been added to zone1970.tab, to give tzselect
    users in Vietnam two choices, since north and south Vietnam
    disagreed after our 1970 cutoff.
  * Asia/Phnom_Penh and Asia/Vientiane have been turned into links, as
    they differed from existing zones only for older (pre-1970) time stamps.
  * Changes affecting commentary.
2014-11-16 07:08:08 +00:00
uebayasi e049ec87a3 regen 2014-11-16 06:10:55 +00:00
uebayasi 25506fcda3 Document build.sh mkernels. 2014-11-16 06:10:31 +00:00
uebayasi 34757c628f build.sh mkernels: Build all kernels in modular build 2014-11-16 06:08:13 +00:00