Merged /head:r256510,256512,257376,257469,260052:

  Make 'netstat -i' use getifaddrs(3) instead of kvm(3).


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261207 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge 261024: fix PIM input regression.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261208 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260485,260496:
  Remove extra nesting from X_ip6_mforward() function.
  Also remove disabled definitions from ip6_mroute.h.

  PR:		185148


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261218 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r261162:

Pull in r195679 from upstream llvm trunk:

  Don't use nopl in cpus that don't support it.

  Patch by Mikulas Patocka. I added the test. I checked that for cpu names that
  gas knows about, it also doesn't generate nopl.

  The modified cpus:
  i686 - there are i686-class CPUs that don't have nopl: Via c3, Transmeta
	 Crusoe, Microsoft VirtualBox - see
	 https://bbs.archlinux.org/viewtopic.php?pid=775414
  k6, k6-2, k6-3, winchip-c6, winchip2 - these are 586-class CPUs
  via c3 c3-2 - see https://bugs.archlinux.org/task/19733 as a proof that
	 Via c3 and c3-Nehemiah don't have nopl

PR:		bin/185777


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261225 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r261146

Bad timespec_subtract() calculations produce negative tv_nsec on i386
which cause EINVAL returned from nanosleep() which cause loop in
cron_sleep() and making all cron jobs to start about 30 seconds earlier
(which cause f.e. logfiles rotation by newsyslog delayed by 1 hour).

Use simple and proved calculations from kernel's timespecsub() instead.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261231 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge /head:261072: Remove WITHOUT_ATF from src.conf.5

Approved by:	hrs (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261236 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 260910:
- Allow PCI devices that are attached to a driver to be identified by their
  device name instead of just the selector.
- Accept an optional device argument to -l to restrict the output to only
  listing details about a single device.  This is mostly useful in
  conjunction with other flags like -e or -c to allow a user to query
  details about a single device.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261250 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260267 (by smh), r261042:
Correct short delete issue in SCSI UNMAP support
Correct missing \n's in xpt_print's
Correct incorrect count being passed to short delete xpt_print


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261255 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Record mergeinfo for earlier merge of 257293.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 260206:
Rework the DSDT generation code a bit to generate more accurate info about
LPC devices.  Among other things, the LPC serial ports now appear as
ACPI devices.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261265 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r256745:

MFP4:
Change 227630 by bz@bz_zenith on 2013/04/12 08:50:27

	Implement soft reset setting sr in sr and just in case loop
	endlessly afterwards.

Sponsored by:	DARPA/AFRL


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 259782:
Add a resume hook for bhyve that runs a function on all CPUs during
resume.  For Intel CPUs, invoke vmxon for CPUs that were in VMX mode
at the time of suspend.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261275 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r256945:

MFP4:
Change 221669 by bz@bz_zenith on 2013/02/01 12:26:04

	Run the initialization for polling earlier along with INTRs
	so that we can put network interface into polling mode by default
	if DEVICE_POLLING is compiled in and no interrupts are available.

Sponsored by:	DARPA/AFRL


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261276 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r256937:

MFP4:
Change 231031 by brooks@brooks_zenith on 2013/07/11 16:22:08

	Turn the unused and uncompilable MIPS_DISABLE_L1_CACHE define in
	cache.c into an option and when set force I- and D-cache line
	sizes to 0 (the latter part might be better as a tunable).

	Fix some casts in an #if 0'd bit of code which attempts to
	disable L1 cache ops when the cache is coherent.

Sponsored by:	DARPA/AFRL


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261277 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r256939

MFP4:
Change 221767 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/02/05 14:18:53

	When printing out information on a TLB MOD exception for a user
	process (e.g., an attempt to write to a read-only page), report
	it as a "write" in the console message, rather than "unknown".

Change 221768 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/02/05 14:28:00

	Fix post-compile but pre-commit typo in last changeset.

Sponsored by:	DARPA/AFRL


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261278 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update EINVAL description.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261280 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r261084:
  malloc() with M_WAITOK doesn't return NULL.

MFC r261085:
  Fix typo in r261084.
  Add to the gctl_error() an ability to specify error description even
  if numeric error code is already specified. Also by default set
  error code to EINVAL.

  PR:		185852

MFC r261086:
  In gctl_copyin() remove unused error variable.
  geom_alloc_copyin() can't return ENOMEM, so describe its fail as bad
  control request. Add check for NULL pointer in gctl_dump(), since it
  can be NULL when geom_alloc_copyin() failed.

MFC r261089:
  Remove another unneeded NULL check from geom_alloc_copyin().
  Do copyout in case of gctl version mismatch and fix sbuf leak in
  g_ctl_ioctl_ctl().

MFC r261091:
  Always free sbuf in gctl_free().


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261285 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 261216:
Explicitly enable I/O and memory decoding in the bridge's command register
when activating an I/O or memory window on the CardBus bridge.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261292 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r261178:

gcc: Add support for -Wmissing-prototypes in C++

Support for warnings about missing prototypes in C++ was added by Apple
GCC (Radar 6261539).  Most of the code crept into r260311 so it felt
natural to make use of it.

Obtained from:	Apple GCC - 5646


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261306 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r261175:

binutils: add support for Intel SMAP-related instructions

Add support for stac/clac instructions to manipulate the flag
that controls the behaviour of Intel's Supervisor Mode Access
Prevention (SMAP) feature.

Tested by:	dim
Obtained from:	OpenBSD


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261307 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f