dragonfly.git
9 months agoSet binutils 2.24 as primary, binutils 2.22 as alternate
John Marino [Fri, 6 Dec 2013 17:51:07 +0000 (18:51 +0100)]
Set binutils 2.24 as primary, binutils 2.22 as alternate

By default, world will now build with binutils 2.24 and objformat will
also default to these programs.  Previously binutils 2.22 has been
performing these duties.

9 months agosed(1): Per the resolution of POSIX bug 0000779 (note 0002050) add
Eitan Adler [Mon, 9 Dec 2013 19:19:39 +0000 (14:19 -0500)]
sed(1): Per the resolution of POSIX bug 0000779 (note 0002050) add
support for using 'i' as a case insensitive flag.

Obtained-from:   FreeBSD r259132

9 months agosysctl.3: Remove useless .Ns and use .Vt for types.
Sascha Wildner [Mon, 9 Dec 2013 18:31:50 +0000 (19:31 +0100)]
sysctl.3: Remove useless .Ns and use .Vt for types.

9 months agomakewhatis(8): replace mdoc(7) OS text macros
Franco Fichtner [Mon, 9 Dec 2013 18:40:33 +0000 (18:40 +0000)]
makewhatis(8): replace mdoc(7) OS text macros

9 months agomakewhatis(8): small cleanups, reduce diff against FreeBSD
Franco Fichtner [Mon, 9 Dec 2013 10:38:38 +0000 (10:38 +0000)]
makewhatis(8): small cleanups, reduce diff against FreeBSD

`.SS'-skipping-bit-taken-from: FreeBSD

9 months agomakewhatis(1): use static where appropriate
Eitan Adler [Sun, 8 Dec 2013 21:20:55 +0000 (16:20 -0500)]
makewhatis(1): use static where appropriate

9 months ago/etc/remote: Sort the explanation on the top of the file.
Eitan Adler [Sun, 8 Dec 2013 19:13:31 +0000 (14:13 -0500)]
/etc/remote: Sort the explanation on the top of the file.

Obtained-from:   FreeBSD

9 months agoRemove /usr/include/tzfile.h, since it is not supposed to be public.
Sascha Wildner [Sun, 8 Dec 2013 20:33:43 +0000 (21:33 +0100)]
Remove /usr/include/tzfile.h, since it is not supposed to be public.

Also see the comments at the top of it.

9 months agoAdd static where useful.
Eitan Adler [Sun, 8 Dec 2013 19:04:09 +0000 (14:04 -0500)]
Add static where useful.

9 months agomakewhatis(8): change index build logic
Franco Fichtner [Sun, 8 Dec 2013 13:38:50 +0000 (13:38 +0000)]
makewhatis(8): change index build logic

This commit reflects on issues brought up by swildner.  The idea
behind this change is simple:  track each manual page via
its inode and append all alternative names to the same struct.
The former logic missed references across sections, so the
manual page indexing now covers all sections before creating
the whatis database.

The index now only reflects the layout of /usr/share/man (or
the specified path), and *not* the contents of a manual page,
except for its description.

As a consequence, all MLINKS are now properly referenced in
the apropos(1) output.

I wanted to have the `real' file as the first name, but it's
better to keep the style consistent with `SEE ALSO' sections
by sorting per section, then per name.  Output as follows:

    # apropos vcd
    vcd(4), vkd(4), vke(4), vkernel(7) - virtual kernel architecture

9 months agobnx: Merge several recent bge changes
Sepherosa Ziehau [Sun, 8 Dec 2013 12:58:22 +0000 (20:58 +0800)]
bnx: Merge several recent bge changes

57b622244562b2b67b60bc5eeecd498f5946d359
f2ccc3cdd409facd7b596fcc3f6157e3a7029df2
e6fdacca28b0af2f878e74dd2acc6f40288a4cb3
b87c703422a52f1b874b6f00516b7a096f826b6a
9062031ed71445ef2de9bf9b4e0d96fd6cdf9c34
cc224beafa386c6a9777d1a3296217d768ea7405
0bf9631eae999627c5ae189775a5fe4b1ee75280
d05296cfacc7c2847af2f475bfb374ddf5f985ac

9 months agobge: Extend delay time for 5761 during firmware hand shaking
Sepherosa Ziehau [Sun, 8 Dec 2013 11:36:59 +0000 (19:36 +0800)]
bge: Extend delay time for 5761 during firmware hand shaking

So the firmware hand shaking will not time out on these chips.

9 months agobge: Bring in APE support from FreeBSD
Sepherosa Ziehau [Sun, 8 Dec 2013 11:14:09 +0000 (19:14 +0800)]
bge: Bring in APE support from FreeBSD

Obtained-from: FreeBSD 241438 248226

9 months agomake upgrade: Fix typo.
Sascha Wildner [Sat, 7 Dec 2013 21:08:16 +0000 (22:08 +0100)]
make upgrade: Fix typo.

9 months agomake upgrade: Remove old binutils manual pages, too.
Sascha Wildner [Sat, 7 Dec 2013 20:41:19 +0000 (21:41 +0100)]
make upgrade: Remove old binutils manual pages, too.

9 months agoUPDATING: Don't stop shouting in the middle of the sentence.
Sascha Wildner [Sat, 7 Dec 2013 11:36:14 +0000 (12:36 +0100)]
UPDATING: Don't stop shouting in the middle of the sentence.

9 months agoacpi utilities: Raise WARNS to 2, bump CSTD to gnu99, fix warnings.
Sascha Wildner [Sat, 7 Dec 2013 11:32:42 +0000 (12:32 +0100)]
acpi utilities: Raise WARNS to 2, bump CSTD to gnu99, fix warnings.

9 months agorogue(6): Fix a warning which crept up with -O2.
Sascha Wildner [Sat, 7 Dec 2013 09:30:12 +0000 (10:30 +0100)]
rogue(6): Fix a warning which crept up with -O2.

9 months agolibwrap: Raise WARNS to 2 and fix warnings.
Sascha Wildner [Fri, 6 Dec 2013 17:46:05 +0000 (18:46 +0100)]
libwrap: Raise WARNS to 2 and fix warnings.

9 months agogold 2.24: Sync with binutils 2.22
John Marino [Fri, 6 Dec 2013 16:11:17 +0000 (17:11 +0100)]
gold 2.24: Sync with binutils 2.22

I had forgotten that the build for gold changed on DragonFly between
binutils 2.21 and binutils 2.22.  When I based 2.24 on 2.21, I lost
these change (namely a common Makefile.gld and the support for the
new utility incremental dump).

I also forgot the update the generated yyscript.[ch] files.
This commit brings binutils 2.24 in-line with 2.22.

9 months agoRemoved the now-unused binutils 2.21 contrib directory
John Marino [Fri, 6 Dec 2013 14:13:03 +0000 (15:13 +0100)]
Removed the now-unused binutils 2.21 contrib directory

9 months agobinutils 2.24: Complete replacement of binutils 2.21
John Marino [Fri, 6 Dec 2013 14:08:44 +0000 (15:08 +0100)]
binutils 2.24: Complete replacement of binutils 2.21

* Binutils 2.22 is still default, pending package build test
* The world breakage cause by previous commit (intended) is fixed
* To use binutils2.24, WORLD_BINUTILS and BINUTILSVER env vars need to
  be set

9 months agoRename binutils221 to binutils224 as a new makefile base
John Marino [Fri, 6 Dec 2013 13:35:06 +0000 (14:35 +0100)]
Rename binutils221 to binutils224 as a new makefile base

* This immediately breaks binutils221 which will be removed imminently
* This temporarily breaks the build completely
* Makefile.buo was realigned to respect 75 characters
* Makefile.buo was tweaked to minimum necessary updates by using :S modifier
* Makefile.buo extra ".else" branches were removed
* NO_BINUTILS221 will be replaced with NO_ALTBINUTILS, this is first step

9 months agoBinutils 2.24: Add READMEs and local modifications
John Marino [Fri, 6 Dec 2013 13:12:06 +0000 (14:12 +0100)]
Binutils 2.24: Add READMEs and local modifications

9 months agoMerge branch 'vendor/BINUTILS224'
John Marino [Fri, 6 Dec 2013 15:13:54 +0000 (16:13 +0100)]
Merge branch 'vendor/BINUTILS224'

9 months agoInitial import of Binutils 2.24 on vendor branch vendor/BINUTILS224
John Marino [Fri, 6 Dec 2013 15:12:33 +0000 (16:12 +0100)]
Initial import of Binutils 2.24 on vendor branch

9 months agoRemove unused file.
Sascha Wildner [Fri, 6 Dec 2013 15:02:27 +0000 (16:02 +0100)]
Remove unused file.

9 months agokernel/i386: Make digi(4) compilable into the kernel and add it to LINT.
Sascha Wildner [Fri, 6 Dec 2013 01:22:02 +0000 (02:22 +0100)]
kernel/i386: Make digi(4) compilable into the kernel and add it to LINT.

9 months agoLINT/LINT64: Additional adjustment for e19e3c77407.
Sascha Wildner [Fri, 6 Dec 2013 01:05:05 +0000 (02:05 +0100)]
LINT/LINT64: Additional adjustment for e19e3c77407.

9 months agokernel: Drop ISA support from most remaining drivers that had some.
Sascha Wildner [Fri, 6 Dec 2013 00:59:18 +0000 (01:59 +0100)]
kernel: Drop ISA support from most remaining drivers that had some.

After this commit we're only left with things like atkbd, sio, etc.
which have to stay.

9 months agokernel: Fix a bunch of drm warnings.
Sascha Wildner [Fri, 6 Dec 2013 00:45:44 +0000 (01:45 +0100)]
kernel: Fix a bunch of drm warnings.

9 months agokernel/i386: Remove some old devices from the userconfig list.
Sascha Wildner [Fri, 6 Dec 2013 00:06:26 +0000 (01:06 +0100)]
kernel/i386: Remove some old devices from the userconfig list.

9 months agoRemove libxpg4 stub which never played a role for DragonFly.
Sascha Wildner [Thu, 5 Dec 2013 23:26:04 +0000 (00:26 +0100)]
Remove libxpg4 stub which never played a role for DragonFly.

9 months agoipfw(8): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Thu, 5 Dec 2013 22:06:28 +0000 (23:06 +0100)]
ipfw(8): Raise WARNS to 2 and fix warnings.

9 months agofsck(8): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Thu, 5 Dec 2013 22:05:57 +0000 (23:05 +0100)]
fsck(8): Raise WARNS to 2 and fix warnings.

9 months agolibm: Properly end some comments before starting a new one.
Sascha Wildner [Thu, 5 Dec 2013 20:06:55 +0000 (21:06 +0100)]
libm: Properly end some comments before starting a new one.

9 months agodrm: Convert idr spinlocks to lockmgr locks
François Tigeot [Thu, 5 Dec 2013 12:39:36 +0000 (13:39 +0100)]
drm: Convert idr spinlocks to lockmgr locks

* Since the idr code uses blocking calls in some code paths we can't
  hold spin locks accross idr calls

* This commit and the idr infinite loop one fix system freeze issues
  with some Xorg operations involving a huge number of pixmaps

9 months agodrm: Reduce differences with Linux 3.8
François Tigeot [Thu, 5 Dec 2013 12:23:03 +0000 (13:23 +0100)]
drm: Reduce differences with Linux 3.8

Rename mode_config.lock to mode_config.mutex

9 months agodrm: Add linux/i2c.h
François Tigeot [Thu, 5 Dec 2013 11:56:40 +0000 (12:56 +0100)]
drm: Add linux/i2c.h

9 months agobge: Don't blindly clear GPIOs configuration.
Sepherosa Ziehau [Thu, 5 Dec 2013 13:27:38 +0000 (21:27 +0800)]
bge: Don't blindly clear GPIOs configuration.

Just use firmware configured one.  This change also fixes non-working
traffic LED on BCM57780.

Obtained-from: FreeBSD 252227

9 months agobge: Correct setting TX random backoff register.
Sepherosa Ziehau [Thu, 5 Dec 2013 13:20:32 +0000 (21:20 +0800)]
bge: Correct setting TX random backoff register.

Obtained-from: FreeBSD 251482

9 months agobge: Reorder reset sequence a little bit
Sepherosa Ziehau [Thu, 5 Dec 2013 13:05:38 +0000 (21:05 +0800)]
bge: Reorder reset sequence a little bit

Obtained-from: FreeBSD 241436

9 months agoidr: Fix an infinite loop issue
Matthew Dillon [Thu, 5 Dec 2013 09:25:23 +0000 (10:25 +0100)]
idr: Fix an infinite loop issue

* idr routines were doing an infinite loop when the array was full but element
  #0 was still free

* Because allocations start at 1, the low bound was not being taken account of
  in idr_find_free(), causing an infinite loop

* idr_get_new_above() couldn't allocate an id >= 1 and idr_pre_get() thought it
  didn't have to expand because id #0 was available

9 months agodrm: Rename drm_debug_flag to drm_debug
François Tigeot [Thu, 5 Dec 2013 07:42:22 +0000 (08:42 +0100)]
drm: Rename drm_debug_flag to drm_debug

9 months agolibopie: Raise WARNS to 2 and fix warnings.
Sascha Wildner [Thu, 5 Dec 2013 03:44:11 +0000 (04:44 +0100)]
libopie: Raise WARNS to 2 and fix warnings.

9 months agotcpd{chk,match}(8): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Thu, 5 Dec 2013 03:12:37 +0000 (04:12 +0100)]
tcpd{chk,match}(8): Raise WARNS to 2 and fix warnings.

9 months agosdpd(8): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Thu, 5 Dec 2013 03:12:00 +0000 (04:12 +0100)]
sdpd(8): Raise WARNS to 2 and fix warnings.

9 months agorpcbind(8): Raise WARNS to 3 and fix warnings.
Sascha Wildner [Thu, 5 Dec 2013 03:11:38 +0000 (04:11 +0100)]
rpcbind(8): Raise WARNS to 3 and fix warnings.

9 months agoifmcstat(8): Raise WARNS to 3 and fix warnings.
Sascha Wildner [Thu, 5 Dec 2013 03:11:09 +0000 (04:11 +0100)]
ifmcstat(8): Raise WARNS to 3 and fix warnings.

9 months agocron(8): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Thu, 5 Dec 2013 03:10:35 +0000 (04:10 +0100)]
cron(8): Raise WARNS to 2 and fix warnings.

9 months agobootparamd/callbootd(8): Raise WARNS to 2.
Sascha Wildner [Thu, 5 Dec 2013 03:10:09 +0000 (04:10 +0100)]
bootparamd/callbootd(8): Raise WARNS to 2.

9 months agoidr: fix bounds checks
Johannes Hofmann [Wed, 4 Dec 2013 20:55:50 +0000 (21:55 +0100)]
idr: fix bounds checks

9 months agotbridge: fix include paths in sample/testk1.c
Johannes Hofmann [Wed, 4 Dec 2013 19:35:54 +0000 (20:35 +0100)]
tbridge: fix include paths in sample/testk1.c

9 months ago<sys/time.h>: setitimer() and utimes() are not BSD specific.
Sascha Wildner [Wed, 4 Dec 2013 18:17:48 +0000 (19:17 +0100)]
<sys/time.h>: setitimer() and utimes() are not BSD specific.

9 months agovgrind(1): Raise WARNS to 3 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:15:20 +0000 (19:15 +0100)]
vgrind(1): Raise WARNS to 3 and fix warnings.

9 months agotelnet(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:14:42 +0000 (19:14 +0100)]
telnet(1): Raise WARNS to 2 and fix warnings.

9 months agotcopy(1): Raise WARNS to 3 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:14:13 +0000 (19:14 +0100)]
tcopy(1): Raise WARNS to 3 and fix warnings.

9 months agosymorder(1): Raise WARNS to 2.
Sascha Wildner [Wed, 4 Dec 2013 18:13:40 +0000 (19:13 +0100)]
symorder(1): Raise WARNS to 2.

9 months agordist(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:12:45 +0000 (19:12 +0100)]
rdist(1): Raise WARNS to 2 and fix warnings.

9 months agoopie{info,key,passwd}(1): Raise WARNS to 2 or 3 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:11:10 +0000 (19:11 +0100)]
opie{info,key,passwd}(1): Raise WARNS to 2 or 3 and fix warnings.

9 months agonfsstat(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:09:11 +0000 (19:09 +0100)]
nfsstat(1): Raise WARNS to 2 and fix warnings.

9 months agomt(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:08:31 +0000 (19:08 +0100)]
mt(1): Raise WARNS to 2 and fix warnings.

9 months agomail(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:07:54 +0000 (19:07 +0100)]
mail(1): Raise WARNS to 2 and fix warnings.

9 months agoldd(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:06:46 +0000 (19:06 +0100)]
ldd(1): Raise WARNS to 2 and fix warnings.

9 months agodrill(1): Raise WARNS to 2.
Sascha Wildner [Wed, 4 Dec 2013 18:04:57 +0000 (19:04 +0100)]
drill(1): Raise WARNS to 2.

9 months agohammer2 - stabilization
Matthew Dillon [Wed, 4 Dec 2013 17:44:59 +0000 (09:44 -0800)]
hammer2 - stabilization

* Fix the hammer2_chain_assert_not_present() call in hammer2_chain_insert()
  to avoid SMP races that could cause it to trigger falsely.  Also fix a
  case where inserting a deleted chain was improperly calling it.

* Fix bugs in hammer2_combined_find().  It is possible for a deleted
  chain from a prior synchronization point to cover a matching media
  blockref from a later synchronization point.  When both a media block
  and an in-memory chain are found, do not just blindly choose the
  in-memory chain.  Choose based on the synchronization points.

* Refactor part of the hardlink code.  Do not create a dummy chain
  to place-hold the target when a hardlink has to be shifted up to
  a parent directory.  Allow hammer2_chain_duplicate() to do it.

9 months agomail(1): Fix an over 9 years old typo/bug.
Sascha Wildner [Wed, 4 Dec 2013 17:19:57 +0000 (18:19 +0100)]
mail(1): Fix an over 9 years old typo/bug.

9 months agoFix some mandoc warnings (tab in non-literal context).
Sascha Wildner [Wed, 4 Dec 2013 13:09:40 +0000 (14:09 +0100)]
Fix some mandoc warnings (tab in non-literal context).

9 months agobge: Move BCM5906 VCPU reset before global reset
Sepherosa Ziehau [Wed, 4 Dec 2013 12:13:24 +0000 (20:13 +0800)]
bge: Move BCM5906 VCPU reset before global reset

According to the datasheet, the VCPU of BCM5906 should set
BGE_VCPU_STATUS_DRV_RESET bit *before* VCPU reset or global reset.

Obtained-from: FreeBSD 241392

9 months agobge: Add delays after enable RX/TX MAC
Sepherosa Ziehau [Wed, 4 Dec 2013 12:07:30 +0000 (20:07 +0800)]
bge: Add delays after enable RX/TX MAC

Follows Broadcom's datasheet recommendation

Obtained-from: FreeBSD 241220

9 months agobge: Add 40us delay after updating MAC_MODE
Sepherosa Ziehau [Wed, 4 Dec 2013 12:04:33 +0000 (20:04 +0800)]
bge: Add 40us delay after updating MAC_MODE

As recommended by Broadcom data sheet.

Obtained-from: FreeBSD 241219

9 months agobge: Keep MAC_MODE accesses atomic
Sepherosa Ziehau [Wed, 4 Dec 2013 12:00:25 +0000 (20:00 +0800)]
bge: Keep MAC_MODE accesses atomic

APE firmware also touches MAC_MODE to keep the MAC connected to the
outside world, so keep the accesses atomic

Obtained-from: FreeBSD 241216

9 months agobge/bnx: Remove duplicated register names; keep names consistent w/ FreeBSD
Sepherosa Ziehau [Wed, 4 Dec 2013 09:43:05 +0000 (17:43 +0800)]
bge/bnx: Remove duplicated register names; keep names consistent w/ FreeBSD

9 months agohammer2 - stabilization, improvements
Matthew Dillon [Wed, 4 Dec 2013 01:52:24 +0000 (17:52 -0800)]
hammer2 - stabilization, improvements

* Improve hammer2_io hysteresis by keeping track of a simple activity
  metric when figuring out what to free.  Instead of cleaning out all
  free hammer2_io structures the code now tries to clean out only half
  of them when the hysteresis limit is reached.

* Remove some debug fields, add some debug fields.

* Refactor the memory load flush/wait code.  Instead of tracking the number
  of chain structures we track the number of MODIFIED chain structures,
  and stage early flushes and resource memory use waits based on that.

* Add temporary debug procedure hammer2_chain_assert_not_present() which
  asserts that a chain being created will not collide with a chain already
  present.

* Fix a bug related to freeing non-stale chains that could corrupt the
  flush algorithm.

* Fix bugs related to races between lookups and delete-duplicate operations.
  Races can occur because a delete-duplicate does not lock the chain->above
  core.

  This was a nasty one.  A delete-duplicate race can cause a lookup to
  find a DELETE+DUPLICATED chain, but just testing the DUPLICATED bit
  doesn't detect the race.  Instead we have to test whether the bit has
  changed between the spin-locked layer/RBTREE search and the locking of
  the chain that was found.

* Fix a bug in h2ignore_deleted().  When a chain is DUPLICATED, the
  delete_tid must be tested for any bref type.  Not testing this was
  allowing delete-duplicates on inodes to cause chains with the MOVED
  flag set to be left dangling in the in-memory topology and never
  get freed.

* Refactor the flush core a bit, in particular handle a case where
  we were improperly clearing the MOVED bit for a chain which had
  flush-deferred children.

* Remove some unused flags.

* Handle a hardlink shifted-upward race in hammer2_inode_lock_ex().

9 months agokernel - Fix SMP races with vnode cluster fields
Matthew Dillon [Wed, 4 Dec 2013 01:42:46 +0000 (17:42 -0800)]
kernel - Fix SMP races with vnode cluster fields

* The better concurrency we have due to the recent buffer cache work has
  revealed a SMP race in the vfs_cluster code.  Various fields used by
  cluster_write() can race and cause the wrong buffers to be clustered to
  the wrong disk offset, resulting in disk corruption.

* Rip the v_lastw, v_cstart, v_lasta, and v_clen fields out of struct vnode
  and replace with a global cluster state cache in vfs_cluster.c.

  The cache is implemented as a 512-entry hash table, 4-way set associative,
  and is more advanced than the original implementation in that it allows
  up to four different seek zones to be tracked on each vnode, instead of
  only one.  This should make buffered device I/O (used by filesystems)
  work better.

  Cache elements are heuristically locked with an atomic_swap_int().  If
  the code is unable to instantly acquire a lock on an element it will
  simply not cluster that particular I/O (instead of blocking).  Even though
  this is a global hash table, operations will have a tendancy to be
  localized to cache elements.

* Remove some manual clearing of fields in UFS's ffs_truncate() routine.
  It should have no material effect.

9 months agosili.4: Remove leftover .El
Sascha Wildner [Wed, 4 Dec 2013 01:40:16 +0000 (02:40 +0100)]
sili.4: Remove leftover .El

9 months agosili.4: Mention the MSI tunable.
Sascha Wildner [Wed, 4 Dec 2013 01:36:17 +0000 (02:36 +0100)]
sili.4: Mention the MSI tunable.

9 months agokernel/msdos: Really fix indentation.
Sascha Wildner [Wed, 4 Dec 2013 01:22:04 +0000 (02:22 +0100)]
kernel/msdos: Really fix indentation.

9 months agomount_msdos(8): Fix indent.
Sascha Wildner [Wed, 4 Dec 2013 01:14:54 +0000 (02:14 +0100)]
mount_msdos(8): Fix indent.

9 months agoidr: access nodes array with token held
Johannes Hofmann [Tue, 3 Dec 2013 21:36:31 +0000 (22:36 +0100)]
idr: access nodes array with token held

9 months agobge: No need to call reset after stop; stop does the reset now
Sepherosa Ziehau [Tue, 3 Dec 2013 12:02:14 +0000 (20:02 +0800)]
bge: No need to call reset after stop; stop does the reset now

9 months agobge: Bring in ASF support from FreeBSD
Sepherosa Ziehau [Tue, 3 Dec 2013 11:52:54 +0000 (19:52 +0800)]
bge: Bring in ASF support from FreeBSD

This is intended to address NMI that has been observed on certain
systems, e.g. host driver and ASF firmware try to access MII register
at the same time.

9 months agofortune : convert dragonfly tips from pkgsrc to dports
Joris Giovannangeli [Tue, 3 Dec 2013 10:57:13 +0000 (11:57 +0100)]
fortune : convert dragonfly tips from pkgsrc to dports

9 months ago802_11 - Bring in some recent work
Matthew Dillon [Tue, 3 Dec 2013 07:30:31 +0000 (23:30 -0800)]
802_11 - Bring in some recent work

* Bring in a64c18c and d895e5.

* NOTE: A more comprehensive synchronization is required for the 802_11
subsystem.

9 months agoiwn - Sync with FreeBSD through today (9817dff in FBsd git repo)
Matthew Dillon [Tue, 3 Dec 2013 07:27:18 +0000 (23:27 -0800)]
iwn - Sync with FreeBSD through today (9817dff in FBsd git repo)

* Sync with FreeBSD through today (9817dff in FBsd git repo)

9 months agoidr: fix sizeof in kmalloc calls
Johannes Hofmann [Tue, 3 Dec 2013 07:02:19 +0000 (08:02 +0100)]
idr: fix sizeof in kmalloc calls

9 months agopf.os: Sync with FreeBSD
Eitan Adler [Tue, 3 Dec 2013 04:32:39 +0000 (23:32 -0500)]
pf.os: Sync with FreeBSD

Local changes already merged.

Obtained-from:   FreeBSD

9 months agoregdomain.xml: sync from FreeBSD
Eitan Adler [Tue, 3 Dec 2013 04:20:56 +0000 (23:20 -0500)]
regdomain.xml: sync from FreeBSD

No local changes were found.

9 months agogettytab: sync changes from FreeBSD.
Eitan Adler [Tue, 3 Dec 2013 04:14:15 +0000 (23:14 -0500)]
gettytab: sync changes from FreeBSD.

Local changes were merged to FreeBSD's gettytab already
Obtained-from:   FreeBSD r258864

9 months agoSync with latest FreeBSD changes. Local changes were merged into
Eitan Adler [Tue, 3 Dec 2013 04:04:22 +0000 (23:04 -0500)]
Sync with latest FreeBSD changes.  Local changes were merged into
FreeBSD's version.

Obtained-from:   FreeBSD

9 months agoidr : fix error in previous commit
Joris Giovannangeli [Tue, 3 Dec 2013 01:02:09 +0000 (02:02 +0100)]
idr : fix error in previous commit

9 months agoidr : Fix logic error in binary tree allocation
Joris Giovannangeli [Tue, 3 Dec 2013 00:55:27 +0000 (01:55 +0100)]
idr : Fix logic error in binary tree allocation

 * A complete binary tree has 2^n - 1 nodes, not 2^n. Changes default size
   to be 2^n - 1.

 * While here, also add proper locking directives to idr_grow and idr_remove_all

9 months agolibc/stdtime: Sync with tzcode2013h from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Sun, 1 Dec 2013 20:39:23 +0000 (21:39 +0100)]
libc/stdtime: Sync with tzcode2013h from ftp://ftp.iana.org/tz/releases

This also reverts most of the changes from the "locale megapatch".
While well-meant, this threw us back to being in sync with upstream's
tzcode2010m, while before we were in sync with tzcode2012c.

Leave those FreeBSD changes which make sense.

9 months agolibc: fix incorrect error handling in shm_open
Nicolas Thery [Mon, 2 Dec 2013 12:52:46 +0000 (13:52 +0100)]
libc: fix incorrect error handling in shm_open

10 months agosili: Add MSI support; not enabled by default
Sepherosa Ziehau [Mon, 2 Dec 2013 12:07:05 +0000 (20:07 +0800)]
sili: Add MSI support; not enabled by default

MSI does not seem to work at all on 3132, sigh

10 months agolibc/xprintf: Fix namespace.h/un-namespace.h inclusion.
Sascha Wildner [Sun, 1 Dec 2013 09:36:46 +0000 (10:36 +0100)]
libc/xprintf: Fix namespace.h/un-namespace.h inclusion.

10 months agoumtx.2: fix typos
Nicolas Thery [Thu, 28 Nov 2013 16:14:16 +0000 (17:14 +0100)]
umtx.2: fix typos

10 months agolibmap.conf: Update man page
John Marino [Sat, 30 Nov 2013 10:50:51 +0000 (11:50 +0100)]
libmap.conf: Update man page

Bring in DES' recent overhaul of the libmap.conf man page

Partially taken from:
FreeBSD SVN 255765 (21 SEP 2013)

10 months agortld: Add directory mapping functionality
John Marino [Sat, 30 Nov 2013 10:23:00 +0000 (11:23 +0100)]
rtld: Add directory mapping functionality

Partially taken from:
FreeBSD SVN 255765 (21 SEP 2013)

10 months agortld: dl_iterate_phdr change
John Marino [Sat, 30 Nov 2013 09:55:19 +0000 (10:55 +0100)]
rtld: dl_iterate_phdr change

The dynamic linker needs to include itself when iterating over loaded
ELF objects in dl_iterate_phdr(3).

Taken by:
FreeBSD SVN 257811 (07 NOV 2013)