]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMerge r233749, building libsupc++ as a shared library and making libstdc++ a
theraven [Wed, 23 May 2012 09:10:46 +0000 (09:10 +0000)]
Merge r233749, building libsupc++ as a shared library and making libstdc++ a
filter library.

It should now be possible to build applications on 9-STABLE that link against
both libc++ and libstdc++ and to test libcxxrt with libstdc++.

If you wish to test libcxxrt, please add this to your /etc/libmap.conf:

libsupc++.so.1  libcxxrt.so.1

If you wish to test libc++, add -std=libc++ to your compile and link flags for
your favourite C++ applications and / or libraries.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235825 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r235508
pfg [Wed, 23 May 2012 02:43:28 +0000 (02:43 +0000)]
MFC: r235508

Fix a couple of issues that appear to be inherited from the old
8.x code:
- If the lock cannot be acquired immediately unlocks 'bar' vnode
and then locks both vnodes in order.
- wrong vnode type panics from cache_enter_time after calls by
ext2_lookup.

The fix merges changes from ufs/ufs_lookup.c.

Submitted by: Mateusz Guzik
Approved by: jhb (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235820 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235151:
yongari [Wed, 23 May 2012 02:02:29 +0000 (02:02 +0000)]
MFC r235151:
  Implement basic remote PHY support. Remote PHY allows the
  controller to perform MDIO type accesses to a remote transceiver
  using message pages defined through MRBE(multirate backplane
  ethernet).  It's used in blade systems(e.g Dell Blade m610) which
  are connected to pass-through blades rather than traditional
  switches.
  This change directly manipulates firmware's mailboxes to control
  remote PHY such that it does not use mii(4).  Alternatively, as
  David said, it could be implemented in brgphy(4) by creating a fake
  PHY and let brgphy(4) do necessary mii accesses and bce(4) can
  implement mailbox accesses based on the type of brgphy(4)'s mii
  accesses. Personally, I think it would make brgphy(4) hard to
  maintain since it would have to access many bce(4) registers in
  brgphy(4). Given that there are users who are suffering from lack
  of remote PHY support, it would be better to get working system
  rather than waiting for complete/perfect implementation.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235818 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r227478:
dim [Tue, 22 May 2012 20:26:14 +0000 (20:26 +0000)]
MFC r227478:

Fix kernel build breakage after r227475.  I had forgotten kernels are
built with -Wundef, as opposed to world.

Additionally, cdefs.h tends to not use indentation for preprocessor
directives, so remove that too.

Pointy hat to: me

git-svn-id: svn://svn.freebsd.org/base/stable/9@235806 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235036:
delphij [Tue, 22 May 2012 19:53:25 +0000 (19:53 +0000)]
MFC r235036:

Add ToS definitions for DiffServ Codepoints as per RFC2474.

Obtained from: OpenBSD

git-svn-id: svn://svn.freebsd.org/base/stable/9@235805 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerged libcxxrt and libc++. Now available for testing on 9-stable with
theraven [Tue, 22 May 2012 18:30:14 +0000 (18:30 +0000)]
Merged libcxxrt and libc++.  Now available for testing on 9-stable with
-stdlib=libc++.  Changes to libstdc++ not yet merged, so it is not yet possible
to mix libstdc++ and libc++ in the same program.

Merged revisions: 226702,226785,227006,227755,227983,227987,228531,228630,228761,229067,230127,232950,233098,234715-234716,234772

git-svn-id: svn://svn.freebsd.org/base/stable/9@235798 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 235622,235639,235683:
iwasaki [Tue, 22 May 2012 17:44:01 +0000 (17:44 +0000)]
MFC 235622,235639,235683:

Merge SMP/i386 suspend/resume support.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235796 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge quick_exit and changes required for C++11 code to compile against FreeBSD headers.
theraven [Tue, 22 May 2012 15:26:55 +0000 (15:26 +0000)]
Merge quick_exit and changes required for C++11 code to compile against FreeBSD headers.

Merges changes from: r227472 r227475 r227475 r227476 r227476 r227490 r227490 r228322 r228323 r228329 r228330 r228528 r228529 r228529 r228901 r228918 r228918 r232971 r232971

Also bump __FreeBSD_version for this and the xlocale merge.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235786 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC the xlocale implementation.
theraven [Tue, 22 May 2012 14:40:39 +0000 (14:40 +0000)]
MFC the xlocale implementation.

Merged revisions: 227487,227753,227807,227818,227999,228002,228875,230156,231673,232498,232601,232620,232626,232926-232927,232929,232931,232935,233173,233600,234573,234578,235239

This currently defines __NO_TLS on ARM (unlike head), because the required
support function has not been MFC'd.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r233310
pfg [Tue, 22 May 2012 02:24:52 +0000 (02:24 +0000)]
MFC: r233310

Add snd_cmi, snd_csa and snd_emu10kx to GENERIC on i386 and amd64.

The GPL infected parts which were blocking the inclusion of snd_csa
and snd_emu10kx in GENERIC have recently been removed from the tree.

Requested by: joel
Discussed with: jhb, joel, Yuriy Tsibizov <yuriy.tsibizov@gfk.ru>
Approved by: jhb (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235769 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r233362
pfg [Tue, 22 May 2012 02:11:08 +0000 (02:11 +0000)]
MFC: r233362

Don't cast a bus address to a uint8_t pointer just to add an offset to
it.  Instead, add the offset directly to the bus address.

Approved by: jhb (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235768 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 234098:
jhb [Tue, 22 May 2012 00:00:17 +0000 (00:00 +0000)]
MFC 234098:
Add media types for 40G media that might be used with FreeBSD.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoRepair mergeinfo from merges done into a sparse checkout.
jhb [Mon, 21 May 2012 23:54:21 +0000 (23:54 +0000)]
Repair mergeinfo from merges done into a sparse checkout.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235763 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoToss bogus mergeinfo.
jhb [Mon, 21 May 2012 21:29:59 +0000 (21:29 +0000)]
Toss bogus mergeinfo.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235743 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 234190,234196,234280:
jhb [Mon, 21 May 2012 21:14:09 +0000 (21:14 +0000)]
MFC 234190,234196,234280:
- Extend the KDB interface to add a per-debugger callback to print a
  backtrace for an arbitrary thread (rather than the calling thread).
  A kdb_backtrace_thread() wrapper function uses the configured debugger
  if possible, otherwise it falls back to using stack(9) if that is
  available.
- Replace a direct call to db_trace_thread() in propagate_priority()
  with a call to kdb_backtrace_thread() instead.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235741 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235634
sbruno [Mon, 21 May 2012 19:58:40 +0000 (19:58 +0000)]
MFC r235634

Fix and update battery status bits according to linux driver

git-svn-id: svn://svn.freebsd.org/base/stable/9@235738 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235451:
hselasky [Mon, 21 May 2012 14:47:34 +0000 (14:47 +0000)]
MFC r235451:
Move reset of USB mouse parameters from the USB mouse attach to
the USB mouse device open. Protect against multi character
device open. Some other nits.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235597:
gjb [Mon, 21 May 2012 00:15:34 +0000 (00:15 +0000)]
MFC r235597:

Fix a typo that crept in.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235707 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r232513:
bz [Sun, 20 May 2012 23:33:10 +0000 (23:33 +0000)]
MFC r232513:

 Correct typo in the RFC number for the constants based on IANA assignments
 for IPv6 Neighbor Discovery Option types for "IPv6 Router Advertisement
 Options for DNS Configuration".  It is RFC 6106.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r232514:
bz [Sun, 20 May 2012 22:55:24 +0000 (22:55 +0000)]
MFC r232514:

 In nd6_options() ignore the RFC 6106 options completely rather than printing
 them if nd6_debug is enabled as unknown.  Leave a comment about the RFC4191
 option as I am undecided so far.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235703 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235212, r235216, r235217:
mm [Sun, 20 May 2012 22:21:59 +0000 (22:21 +0000)]
MFC r235212, r235216, r235217:

MFC r325212 [1]:
Import illumos changeset 13618:c6ae14a341e8
2088 zdb could use a reasonable manual page

Rewrite new zdb manpage to mdoc(7)

MFC r235216 [2]:
Add support for force unmounting ZFS filesystems during "zfs rename"
with the -f flag.

Reimplementation of the illumos changeset 13677:a0cbef703c12
2635 'zfs rename -f' to perform force unmount

MFC r235217 [3]:
Remove unreachable break in zfs_main.c

Partial import of illumos changeset 13622:e5889df1eaac
2077 lots of unreachable breaks in illumos gate

References:
https://www.illumos.org/issues/2088 [1]
https://www.illumos.org/issues/2635 [2]
https://www.illumos.org/issues/2077 [3]

PR: 164447 [1], 164447 [2], 167370 [3]
Suggested by: Marcelo Araujo <araujo@FreeBSD.org>
Obtained from: illumos (issue #2088 [1], #2635 [2], #2077 [3])

git-svn-id: svn://svn.freebsd.org/base/stable/9@235701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r232613:
bz [Sun, 20 May 2012 22:06:32 +0000 (22:06 +0000)]
MFC r232613:

 Fix building with WITHOUT_INET_SUPPORT set.

 Reviewed by: jamie (actually provided the real fix)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r231532:
bz [Sun, 20 May 2012 20:25:22 +0000 (20:25 +0000)]
MFC r231532:

 MFp4 204292:

 Ignore the NAT_T extension types so we can at least dump the SADB from
 the in-base libipsec/setkey without error when NAT_T support is present
 in the kernel, though not printing the additional information yet.
 However in case there is no NAT_T support in kernel still consider them
 to be an error.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235696 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r228976:
dim [Sun, 20 May 2012 15:10:13 +0000 (15:10 +0000)]
MFC r228976:

Reencode files to UTF-8. Drop CP1252 em-dash.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235690 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235538:
kib [Sun, 20 May 2012 14:15:13 +0000 (14:15 +0000)]
MFC r235538:
Fix typo.

MFC r235555:
Use singular form for a modifier.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235688 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235567:
gjb [Sun, 20 May 2012 01:40:12 +0000 (01:40 +0000)]
MFC r235567:

mdoc(7) style/formatting fixes.

While here, fix a few nits igor(1) does not like.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235673 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r234643:
bz [Sat, 19 May 2012 22:18:45 +0000 (22:18 +0000)]
MFC r234643:

 Do not toggle IFCAP_TSO4 if we would also do TSO6.  Given the driver does
 not currently announce/support TSO6 that cannot happen. Clean it up anyway
 for consistency.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235668 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r234620 (record mergeinfo only):
bz [Sat, 19 May 2012 21:56:26 +0000 (21:56 +0000)]
MFC r234620 (record mergeinfo only):

git-svn-id: svn://svn.freebsd.org/base/stable/9@235665 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r234618:
bz [Sat, 19 May 2012 21:45:11 +0000 (21:45 +0000)]
MFC r234618:

 Do not announce IPv6 TSO support yet.  The driver seems to make assumptions
 based on IPv4 header parsing only.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235664 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r234617:
bz [Sat, 19 May 2012 21:36:52 +0000 (21:36 +0000)]
MFC r234617:

 Do not announce IPv6 TSO support yet.  The in-tree driver does not seem
 to fully handle this yet.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235663 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r231767:
bz [Sat, 19 May 2012 18:32:31 +0000 (18:32 +0000)]
MFC r231767:

 Fix PAWS (Protect Against Wrapped Sequence numbers) in cases when
 hz >> 1000 and thus getting outside the timestamp clock frequenceny of
 1ms < x < 1s per tick as mandated by RFC1323, leading to connection
 resets on idle connections.

 Always use a granularity of 1ms using getmicrouptime() making all but
 relevant callouts independent of hz.

 Use getmicrouptime(), not getmicrotime() as the latter may make a jump
 possibly breaking TCP nfsroot mounts having our timestamps move forward
 for more than 24.8 days in a second without having been idle for that
 long.

PR: kern/61404

git-svn-id: svn://svn.freebsd.org/base/stable/9@235657 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r234353:
dim [Fri, 18 May 2012 21:49:11 +0000 (21:49 +0000)]
MFC r234353:

  Upgrade our copy of llvm/clang to trunk r154661, in preparation of the
  upcoming 3.1 release (expected in a few weeks).  Preliminary release
  notes can be found at: <http://llvm.org/docs/ReleaseNotes.html>

MFC r234982:

  Upgrade our copy of llvm/clang to r155985, from upstream's release_31
  branch.  This brings us very close to the 3.1 release, which is planned
  for May 14th.

MFC r235058:

  Make sure a few new internal clang headers get installed, I missed these
  in the last import.  They are sometimes needed when you want to use
  advanced instructions.

  Also, add clang's internal stdalign.h header to ObsoleteFiles.inc, since
  it is redundant: we already have a stdalign.h header in /usr/include.

  Pointy hat to: dim
  PR: kern/167574
  Submitted by: jkim
  Reported by: Oliver Hartmann <ohartman@zedat.fu-berlin.de>

git-svn-id: svn://svn.freebsd.org/base/stable/9@235633 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoPurge mergeinfo from i386/conf/XENHVM. The mergeinfo related to
jhb [Fri, 18 May 2012 20:40:24 +0000 (20:40 +0000)]
Purge mergeinfo from i386/conf/XENHVM.  The mergeinfo related to
amd64/conf/XENHVM is only useful in HEAD.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235629 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMove mergeinfo from sys/kern/subr_witness.c up to sys/.
jhb [Fri, 18 May 2012 20:24:31 +0000 (20:24 +0000)]
Move mergeinfo from sys/kern/subr_witness.c up to sys/.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235627 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC of 234386, 234400, 234441, 234443, 234482, 234483, 235052, 235241,
mckusick [Fri, 18 May 2012 19:48:38 +0000 (19:48 +0000)]
MFC of 234386, 234400, 234441, 234443, 234482, 234483, 235052, 235241,
       235246, and 235619

MFC: 234386

Replace the MNT_VNODE_FOREACH interface with MNT_VNODE_FOREACH_ALL.
The primary changes are that the user of the interface no longer
needs to manage the mount-mutex locking and that the vnode that
is returned has its mutex locked (thus avoiding the need to check
to see if its is DOOMED or other possible end of life senarios).

To minimize compatibility issues for third-party developers, the
old MNT_VNODE_FOREACH interface will remain available so that this
change can be MFC'ed to 9. Following the MFC to 9, MNT_VNODE_FOREACH
will be removed in head.

The reason for this update is to prepare for the addition of the
MNT_VNODE_FOREACH_ACTIVE interface that will loop over just the
active vnodes associated with a mount point (typically less than
1% of the vnodes associated with the mount point).

Reviewed by: kib
Tested by:   Peter Holm
MFC after:   2 weeks

MFC: 234400

Drop export of vdestroy() function from kern/vfs_subr.c as it is
used only as a helper function in that file. Replace sole call to
vbusy() with inline code in vholdl(). Replace sole calls to vfree()
and vdestroy() with inline code in vdropl().

The Clang compiler already inlines these functions, so they do not
show up in a kernel backtrace which is confusing. Also you cannot
set their frame in kgdb which means that it is impossible to view
their local variables. So, while the produced code is unchanged,
the debugging should be easier.

Discussed with: kib
MFC after:      2 weeks

MFC: 234441

Fix a memory leak of M_VNODE_MARKER introduced in 234386.

Found by:  Peter Holm

MFC: 234443

Delete a no longer useful VNASSERT missed during changes in 234400.

Suggested by: kib

MFC: 234482

This change creates a new list of active vnodes associated with
a mount point. Active vnodes are those with a non-zero use or hold
count, e.g., those vnodes that are not on the free list. Note that
this list is in addition to the list of all the vnodes associated
with a mount point.

To avoid adding another set of linkage pointers to the vnode
structure, the active list uses the existing linkage pointers
used by the free list (previously named v_freelist, now renamed
v_actfreelist).

This update adds the MNT_VNODE_FOREACH_ACTIVE interface that loops
over just the active vnodes associated with a mount point (typically
less than 1% of the vnodes associated with the mount point).

Reviewed by: kib
Tested by:   Peter Holm
MFC after:   2 weeks

MFC: 234483

This update uses the MNT_VNODE_FOREACH_ACTIVE interface that loops
over just the active vnodes associated with a mount point to replace
MNT_VNODE_FOREACH_ALL in the vfs_msync, ffs_sync_lazy, and qsync
routines.

The vfs_msync routine is run every 30 seconds for every writably
mounted filesystem. It ensures that any files mmap'ed from the
filesystem with modified pages have those pages queued to be
written back to the file from which they are mapped.

The ffs_lazy_sync and qsync routines are run every 30 seconds for
every writably mounted UFS/FFS filesystem. The ffs_lazy_sync routine
ensures that any files that have been accessed in the previous
30 seconds have had their access times queued for updating in the
filesystem. The qsync routine ensures that any files with modified
quotas have those quotas queued to be written back to their
associated quota file.

In a system configured with 250,000 vnodes, less than 1000 are
typically active at any point in time. Prior to this change all
250,000 vnodes would be locked and inspected twice every minute
by the syncer. For UFS/FFS filesystems they would be locked and
inspected six times every minute (twice by each of these three
routines since each of these routines does its own pass over the
vnodes associated with a mount point). With this change the syncer
now locks and inspects only the tiny set of vnodes that are active.

Reviewed by: kib
Tested by:   Peter Holm
MFC after:   2 weeks

MFC: 235052 (by pluknet)

Fix mount mutex handling missed in r234386.

MFC: 235241 (by pluknet)

Fix mount interlock oversights from the previous change in r234386.

Reported by:    dougb
Submitted by:   Mateusz Guzik <mjguzik at gmail com>
Reviewed by:    Kirk McKusick
Tested by:      pho

MFC: 235246

Fix mount mutex handling missed in r234386.

MFC: 235619

Update comment to document that the vnode free-list mutex needs to be
held when updating mnt_activevnodelist and mnt_activevnodelistsize.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235626 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235291:
jamie [Fri, 18 May 2012 19:08:10 +0000 (19:08 +0000)]
MFC r235291:

 The linker isn't consistent in the ordering of dynamic sysctls, so don't
 assume that the unnamed final component of "security.jail.param.foo." is
 one less than the "foo" component.  It might be one greater instead.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 234186
jhb [Fri, 18 May 2012 18:51:13 +0000 (18:51 +0000)]
MFC 234186
If a linker file contains at least one module, but all of the modules
fail to load (the MOD_LOAD event fails) during a kldload(2), unload the
linker file and fail the kldload(2) with ENOEXEC.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r230131:
dim [Fri, 18 May 2012 18:34:29 +0000 (18:34 +0000)]
MFC r230131:

Reencode morse.c to UTF-8. This does not make it Unicode aware.

No changes in resulting object file. Moved user-visible symbols into
comment table, so you can see all chars, not just the ones matching your
(fallback) locale.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235618 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years ago/etc/netstart: remove invocation of dhclient
rea [Fri, 18 May 2012 18:26:03 +0000 (18:26 +0000)]
/etc/netstart: remove invocation of dhclient

dhclient is no longer a real service, it is a helper script
for /etc/rc.d/netif and devd.  Its direct invocation isn't
needed to bring the network up.

Approved by: jhb, delphij

git-svn-id: svn://svn.freebsd.org/base/stable/9@235615 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 234182:
jhb [Fri, 18 May 2012 16:16:47 +0000 (16:16 +0000)]
MFC 234182:
Don't update if_obytes when transmitting packets.  That is already done
in IFQ_HANDOFF() when the packet is passed to the start routine, so doing
it here resulted in double counting.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235612 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235499:
gjb [Fri, 18 May 2012 02:19:53 +0000 (02:19 +0000)]
MFC r235499:

Reword hostapd.conf(5) sentence.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235595 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235441:
gjb [Fri, 18 May 2012 02:16:14 +0000 (02:16 +0000)]
MFC r235441:

Fix an mdoc(7) formatting nit.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235593 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235357,r235358,r235371,r235373,r235376:
gjb [Fri, 18 May 2012 02:13:19 +0000 (02:13 +0000)]
MFC r235357,r235358,r235371,r235373,r235376:

Fix various mdoc(7) style nits.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235591 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoDocument requirement to alter some sysctls when using igb(4) with
gjb [Fri, 18 May 2012 02:06:10 +0000 (02:06 +0000)]
Document requirement to alter some sysctls when using igb(4) with
jumbo frames.

PR: 153738

git-svn-id: svn://svn.freebsd.org/base/stable/9@235589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235342:
gjb [Fri, 18 May 2012 02:00:01 +0000 (02:00 +0000)]
MFC r235342:

General mdoc(7) and typo fixes.

PR: 167804

git-svn-id: svn://svn.freebsd.org/base/stable/9@235587 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235337:
gjb [Fri, 18 May 2012 01:51:12 +0000 (01:51 +0000)]
MFC r235337:

General mdoc(7) and typo fixes.

PR: 167804

git-svn-id: svn://svn.freebsd.org/base/stable/9@235586 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235319:
gjb [Fri, 18 May 2012 01:10:12 +0000 (01:10 +0000)]
MFC r235319:

Remove duplicate words in mdoc(7) pages.

PR: 167810

git-svn-id: svn://svn.freebsd.org/base/stable/9@235582 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235140:
gjb [Fri, 18 May 2012 01:04:03 +0000 (01:04 +0000)]
MFC r235140:

General mdoc(7) and typo fixes.

PR: 167713

git-svn-id: svn://svn.freebsd.org/base/stable/9@235580 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235317:
gjb [Fri, 18 May 2012 00:55:47 +0000 (00:55 +0000)]
MFC r235317:

General mdoc(7) and typo fixes.

PR: 167776

git-svn-id: svn://svn.freebsd.org/base/stable/9@235578 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r228917:
delphij [Fri, 18 May 2012 00:40:49 +0000 (00:40 +0000)]
MFC r228917:

 - Fail when the utility is not invoked as rtprio nor idprio.
 - use warnx() to tell the user whether a process is running in normal,
   idle or realtime priority. with the old code it would have been possible
   for another process to send data to stdout between
        printf("%s: ", p);
   and
        printf("* priority\n");
   and thus break the formatting.
 - 'rtprio 10 -0' triggeres non-intuitive behavior.  It would first set the
   priority of itself to 10 *and* would then try to execute '-0'. Of course,
   setting the priority of [id|rt]prio itself doesn't make a lot of sense,
   but it is intuitive compared to the previous behavior.
 - 'rtprio -t --1' will actually pass over the '-1' to rtprio().  Now
   invoking rtprio like this will catch the wrong usage before passing
   over the invalid argument to rtprio().
 - Garrett Cooper suggested to add further diagnostics where the failure
   occures, if execvp fails.

PR: bin/154042
Submitted by: arundel

MFC r235293:

Fix the case where the utility is being used to run a command directly,
this is a regression introduced with r228917.

PR: bin/154042
Submitted by: Bugs Beastie <bugsbeastie gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/9@235577 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235286:
gjb [Fri, 18 May 2012 00:31:20 +0000 (00:31 +0000)]
MFC r235286:

General mdoc(7) and typo fixes.

PR: 167734

git-svn-id: svn://svn.freebsd.org/base/stable/9@235575 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235252:
gjb [Fri, 18 May 2012 00:07:48 +0000 (00:07 +0000)]
MFC r235252:

Document the unzip(1) '-Z' option implemented in r234206.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r235211:
gjb [Fri, 18 May 2012 00:00:46 +0000 (00:00 +0000)]
MFC r235211:

General mdoc(7) and typo fixes.

PR: 167696

git-svn-id: svn://svn.freebsd.org/base/stable/9@235570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 235563:
jhb [Thu, 17 May 2012 20:27:24 +0000 (20:27 +0000)]
MFC 235563:
Don't expose i386-only ptrace constants on amd64.  This broke gdb with
libthread_db on amd64.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235564 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoforgot two files in the previous commit...
luigi [Thu, 17 May 2012 20:04:24 +0000 (20:04 +0000)]
forgot two files in the previous commit...

git-svn-id: svn://svn.freebsd.org/base/stable/9@235561 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoPartial MFC of 232520:
jhb [Thu, 17 May 2012 19:01:13 +0000 (19:01 +0000)]
Partial MFC of 232520:
For amd64 PT_GETXSTATE and PT_SETXSTATE have been redefined to match the
i386 values. The old values are still supported but should no longer be
used.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235559 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 235453:
jpaetzel [Thu, 17 May 2012 15:22:08 +0000 (15:22 +0000)]
MFC 235453:

Style fixes.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

git-svn-id: svn://svn.freebsd.org/base/stable/9@235552 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: 235452
jpaetzel [Thu, 17 May 2012 15:20:21 +0000 (15:20 +0000)]
MFC: 235452

Set the MBR partition to active when doing a full disk MBR.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

git-svn-id: svn://svn.freebsd.org/base/stable/9@235551 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: netmap support for the 're' driver
luigi [Thu, 17 May 2012 15:03:16 +0000 (15:03 +0000)]
MFC: netmap support for the 're' driver

git-svn-id: svn://svn.freebsd.org/base/stable/9@235550 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: the netmap code from HEAD, now supported in the ixgbe/ and e1000/
luigi [Thu, 17 May 2012 15:02:51 +0000 (15:02 +0000)]
MFC: the netmap code from HEAD, now supported in the ixgbe/ and e1000/
drivers (re/ will come in the next commit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235549 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agofix a typo in a comment
luigi [Thu, 17 May 2012 14:37:01 +0000 (14:37 +0000)]
fix a typo in a comment

git-svn-id: svn://svn.freebsd.org/base/stable/9@235548 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235133:
dim [Thu, 17 May 2012 10:36:32 +0000 (10:36 +0000)]
MFC r235133:

Revert r234656, and apply a proper fix for binutils PR 10474, which
caused linking clang on 32-bit PowerPC to fail with "relocation
truncated to fit: R_PPC_REL24" errors.

Original diffs (relicensed under GPLv2 with permission from author):
http://sourceware.org/git/?p=binutils.git;a=commit;h=1fd262ff7d7ea5adf4894c6b960e092e7e43e3cd
http://sourceware.org/git/?p=binutils.git;a=commit;h=053c49fbff58bd33bd0d12200ea61302f92caceb

Tested by: andreast

git-svn-id: svn://svn.freebsd.org/base/stable/9@235540 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234785:
dim [Thu, 17 May 2012 10:25:34 +0000 (10:25 +0000)]
MFC r234785:

Add a convenience macro for the returns_twice attribute, and apply it to
the prototypes of the appropriate functions (getcontext, savectx,
setjmp, sigsetjmp and vfork).

git-svn-id: svn://svn.freebsd.org/base/stable/9@235539 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235122:
jlh [Thu, 17 May 2012 07:59:15 +0000 (07:59 +0000)]
MFC r235122:
  Introduce the ${SHLIB_LDSCRIPT} variable to have an ld(1) script
  instead of a symlink for .so files.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235534 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC of the ixgbe driver. Including revisions:
jfv [Thu, 17 May 2012 00:06:54 +0000 (00:06 +0000)]
MFC of the ixgbe driver. Including revisions:
228276,229767,229939,230329,
230572,230775,230790,231796,
232238,234137,234229,234620

git-svn-id: svn://svn.freebsd.org/base/stable/9@235528 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC of the e1000 drivers: revisions include
jfv [Wed, 16 May 2012 22:22:52 +0000 (22:22 +0000)]
MFC of the e1000 drivers: revisions include
227309,228281,228386,228387,228393,228405,
228415,228788,228803,229606,229767,229939,
230023,230024,230742,231796,232238,233708,
234154,234665,235256

git-svn-id: svn://svn.freebsd.org/base/stable/9@235527 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235318, r235321
sbruno [Wed, 16 May 2012 22:19:22 +0000 (22:19 +0000)]
MFC r235318, r235321

Fix inappropriate data type for two bus_dmamap_t variables that were causing
PAE to insta-panic on startup.  Remove one unused variable that was
commented out.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235525 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 234152:
jhb [Wed, 16 May 2012 21:06:56 +0000 (21:06 +0000)]
MFC 234152:
Allow device_busy() and device_unbusy() to be invoked while a device is
being attached.  This is implemented by adding a new DS_ATTACHING state
while a device's DEVICE_ATTACH() method is being invoked.  A driver is
required to not fail an attach of a busy device.  The device's state will
be promoted to DS_BUSY rather than DS_ACTIVE() if the device was marked
busy during DEVICE_ATTACH()

git-svn-id: svn://svn.freebsd.org/base/stable/9@235522 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235142:
jlh [Wed, 16 May 2012 20:31:37 +0000 (20:31 +0000)]
MFC r235142:
  Always define LD_32_PRELOAD so it works for 32 bits binaries on
  64 bits platforms.  Let rtld(1) decide if it needs to honor it
  or not.

  While here, fix a small bug in error reporting when asprintf(3)
  returns an error.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235520 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234245:
delphij [Wed, 16 May 2012 20:05:21 +0000 (20:05 +0000)]
MFC r234245:

Eliminate an unused parameter of static method igmp_stats_live_old().

git-svn-id: svn://svn.freebsd.org/base/stable/9@235516 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 233709,233781,233793:
jhb [Wed, 16 May 2012 20:04:45 +0000 (20:04 +0000)]
MFC 233709,233781,233793:
- Don't malloc() new MCA records for machine checks logged due to a
  CMCI or MC# exception.  Instead, use a pre-allocated pool of records.
  When a CMCI or MC# exception fires, schedule a task to refill the pool.
  The pool is sized to hold at least one record per available machine
  bank, and one record per CPU. This should handle the case of all CPUs
  triggering a single bank at once as well as the case a single CPU
  triggering all of its banks.  The periodic scans still use malloc()
  since they are run from a safe context.
- Make machine check exception logging more readable.  On newer Intel systems,
  an uncorrected ECC error tends to fire on all CPUs in a package
  simultaneously and the current printf hacks are not sufficient to make
  the messages legible.  Instead, use the existing mca_lock spinlock to
  serialize calls to mca_log() and change the machine check code to panic
  directly when an unrecoverable error is encoutered rather than falling
  back to a trap_fatal() call in trap() (which adds nearly a screen-full of
  logging messages that aren't useful for machine checks).

git-svn-id: svn://svn.freebsd.org/base/stable/9@235515 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234244:
delphij [Wed, 16 May 2012 20:00:33 +0000 (20:00 +0000)]
MFC r234244:

The scandir(3) function expects fourth parameter, compar, be in type of:

int (*compar)(const struct dirent **, const struct dirent **)

The current code defines sortq() to accept two void *, then cast them
to const struct dirent **.  Because the code does not really need this
cast, we can eliminate the casts by changing the function prototype
to match scandir(3) expectation.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: r234957
brueffer [Wed, 16 May 2012 19:25:50 +0000 (19:25 +0000)]
MFC: r234957

Check vplabel for NULL before dereferencing it.  Fixes a panic
when running atop with MAC_MLS enabled.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235511 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235201 r235419:
eadler [Wed, 16 May 2012 00:37:37 +0000 (00:37 +0000)]
MFC r235201 r235419:
 Add missing period at the end of the error message

Approved by: cperciva (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235498 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235043:
jimharris [Wed, 16 May 2012 00:10:42 +0000 (00:10 +0000)]
MFC r235043:

Fix off-by-one error in sati_inquiry_block_device_translate_data().  Bug would
result in INQUIRY VPD 0x81 to SATA devices to return only 63 bytes of data
instead of 64 during SCSI/ATA translation.

Sponsored by: Intel

git-svn-id: svn://svn.freebsd.org/base/stable/9@235494 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 229538:
jpaetzel [Tue, 15 May 2012 21:06:24 +0000 (21:06 +0000)]
MFC 229538:

mkulzma used to create lzma compressed images, just like mkuzip do.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 229537
jpaetzel [Tue, 15 May 2012 20:49:25 +0000 (20:49 +0000)]
MFC 229537

GEOM_UNCOMPRESS module, can be used with uzip images and with new ulzma images.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235484 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 229533:
jpaetzel [Tue, 15 May 2012 20:48:09 +0000 (20:48 +0000)]
MFC 229533:

Update contrib/xz-embedded to build with new GEOM_UNCOMPRESS module.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235483 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 229211:
jpaetzel [Tue, 15 May 2012 20:47:00 +0000 (20:47 +0000)]
MFC 229211:

Initial copy of xz-embedded to sys/contrib/.

The upcoming geom_compress module (a read-only gzip/ulzma translation layer,
similar to what geom_uzip does) will leverage parts of this.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235482 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r230643: stop_scheduler -> td_stopsched
avg [Tue, 15 May 2012 17:21:46 +0000 (17:21 +0000)]
MFC r230643: stop_scheduler -> td_stopsched

git-svn-id: svn://svn.freebsd.org/base/stable/9@235480 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235143:
kib [Tue, 15 May 2012 09:09:14 +0000 (09:09 +0000)]
MFC r235143:
Plug a leak.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235466 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234489:
jh [Mon, 14 May 2012 15:46:37 +0000 (15:46 +0000)]
MFC r234489:

The value of flags matching VNOVAL can't be supported. Return EOPNOTSUPP
from setfflags() in this case. This fixes the return value of
chflags(path, -1).

git-svn-id: svn://svn.freebsd.org/base/stable/9@235449 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: 235008
jpaetzel [Mon, 14 May 2012 15:20:39 +0000 (15:20 +0000)]
MFC: 235008

Add bootcamp bootloader stamp.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

git-svn-id: svn://svn.freebsd.org/base/stable/9@235448 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: 235006
jpaetzel [Mon, 14 May 2012 15:18:47 +0000 (15:18 +0000)]
MFC: 235006

Add powerpc / powerpc64 support to pc-sysinstall. This patch will
autodetect if on powerpc and use the APM gpart GEOM class
automaticaly.  At this time support for full disk installation is
the only supported scheme.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

git-svn-id: svn://svn.freebsd.org/base/stable/9@235447 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: 235005
jpaetzel [Mon, 14 May 2012 15:15:13 +0000 (15:15 +0000)]
MFC: 235005

Use a unique zpool name during install, in the case of having another
PC-BSD / FreeBSD zpool on the system for another install.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

git-svn-id: svn://svn.freebsd.org/base/stable/9@235446 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 234990:
jpaetzel [Mon, 14 May 2012 15:13:14 +0000 (15:13 +0000)]
MFC 234990:

Fix some issues creaing zpool mirror / raidz1(2)(3) devices.
Fix issues stamping boot on other ZFS drives, now you can boot after removing
mirror drive.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

git-svn-id: svn://svn.freebsd.org/base/stable/9@235445 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 234987:
jpaetzel [Mon, 14 May 2012 15:08:45 +0000 (15:08 +0000)]
MFC 234987:

Add the ability to configure multiple interfaces

Submitted by: glarkin
Obtained from: PC-BSD

git-svn-id: svn://svn.freebsd.org/base/stable/9@235444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: 234985
jpaetzel [Mon, 14 May 2012 15:06:04 +0000 (15:06 +0000)]
MFC: 234985

Fix parsing values which contain multiple "=" signs.

Submitted by: glarkin
Sponsored by: iXsystems

git-svn-id: svn://svn.freebsd.org/base/stable/9@235443 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228687:
pluknet [Mon, 14 May 2012 13:49:06 +0000 (13:49 +0000)]
MFC r228687:

Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235283:
tuexen [Mon, 14 May 2012 09:54:16 +0000 (09:54 +0000)]
MFC r235283:
Fix a bug in the handling of association reset request.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235433 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235282:
tuexen [Mon, 14 May 2012 09:51:43 +0000 (09:51 +0000)]
MFC r235282:
Only provide the supported features in the SCTP_ASSOC_CHANGE notif
if the state is SCTP_COMM_UP or SCTP_RESTART.
While there, do some cleanups.

git-svn-id: svn://svn.freebsd.org/base/stable/9@235431 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235280:
tuexen [Mon, 14 May 2012 09:48:39 +0000 (09:48 +0000)]
MFC r235280:
Remove a constant which is only used on non-FreeBSD platform.
(The actual code for the socket option handling has been #ifdefed
out forever...)

git-svn-id: svn://svn.freebsd.org/base/stable/9@235430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r235119:
yongari [Mon, 14 May 2012 04:21:27 +0000 (04:21 +0000)]
MFC r235119:
  Restore jumbo frame configuration which was broken in r218423.

  Submitted by: Andrey Zonov <andrey <> zonov dot org > (initial version)
  Tested by: Andrey Zonov <andrey <> zonov dot org >

git-svn-id: svn://svn.freebsd.org/base/stable/9@235423 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: r235255
marius [Mon, 14 May 2012 03:11:07 +0000 (03:11 +0000)]
MFC: r235255

- Change the module order of these MAC drivers to be last so they are
  deterministically handled after the corresponding PHY drivers when
  loaded as modules. Otherwise, when these MAC/PHY driver pairs are
  compiled into a single module probing the PHY driver may fail. This
  makes r151438 and r226154 actually work. [1]
  Reported and tested by: yongari (fxp(4))
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

Submitted by: jhb [1]

git-svn-id: svn://svn.freebsd.org/base/stable/9@235422 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r229854: enable stop_scheduler_on_panic by default
avg [Sun, 13 May 2012 17:32:12 +0000 (17:32 +0000)]
MFC r229854: enable stop_scheduler_on_panic by default

git-svn-id: svn://svn.freebsd.org/base/stable/9@235413 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228765: ukbd: adjust for SCHEDULER_STOPPED() and overhaul locking code
avg [Sun, 13 May 2012 17:15:30 +0000 (17:15 +0000)]
MFC r228765: ukbd: adjust for SCHEDULER_STOPPED() and overhaul locking code

git-svn-id: svn://svn.freebsd.org/base/stable/9@235411 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228760: adapt usb transfer code for SCHEDULER_STOPPED
avg [Sun, 13 May 2012 17:14:26 +0000 (17:14 +0000)]
MFC r228760: adapt usb transfer code for SCHEDULER_STOPPED

git-svn-id: svn://svn.freebsd.org/base/stable/9@235410 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228767: sc_cngrab: switch to console vty when possible
avg [Sun, 13 May 2012 17:13:21 +0000 (17:13 +0000)]
MFC r228767: sc_cngrab: switch to console vty when possible

git-svn-id: svn://svn.freebsd.org/base/stable/9@235409 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228644: syscons: provide a first iteration of cngrab/cnungrab
avg [Sun, 13 May 2012 17:11:49 +0000 (17:11 +0000)]
MFC r228644: syscons: provide a first iteration of cngrab/cnungrab
implementation

git-svn-id: svn://svn.freebsd.org/base/stable/9@235408 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228633,228634,228638,228642,228643: introduce cngets,
avg [Sun, 13 May 2012 17:10:38 +0000 (17:10 +0000)]
MFC r228633,228634,228638,228642,228643: introduce cngets,
a method for kernel to read a string from console

git-svn-id: svn://svn.freebsd.org/base/stable/9@235407 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f