Use the streaming functions for reading/writing the BAP fields on wi(4).  This
fixes wi(4) device access on big endian architectures.

PR:		kern/164499
Reviewed by:	adrian
Obtained from:	NetBSD


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253756 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix alignment of USB WLAN radiotap headers. This makes USB WLAN adapters
work on ARM, MIPS and similar platforms, where alignment matters.

MFC after:	1 week
Reported by:	XiaoQI Ge <ghw@7axu.com>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Realtek's RTL8712 firmware blob needed by the upcoming rsu(4) driver.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253759 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Firmware module for the upcoming rsu(4) driver.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253760 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a debugging hack that snuck in.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253761 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Define KDB_STOPPEDPCB, so that we can access the backtraces of threads running
on other cores.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253762 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Reenable the isnan(double) / isinf(double) declarations when targeting C89 + SUSv2 mode.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Restore the longer form of the _Generic.  The short form does not work in C++.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Include stdint.h to fix build.

Pointed by:	Olivier Cochard-Labbé


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Explicitely include <machine/pcb.h>, so that we get the definition of
struct pcb.

Submitted by:	Zbyszek Bodek <zbb@semihalf.com>
Pointy hat to: 	cognet


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253768 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a possible NULL-pointer dereference on the pfsync(4) reconfiguration.

Reported by:	Eugene M. Zheganin


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253769 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
dtrace disassembler: take the latest/last CDDL code from OpenSolaris

OpenSolaris version is:
13108:33bb8a0301ab
6762020 Disassembly support for Intel Advanced Vector Extensions (AVX)

This corresponds to Illumos-gate (github) version
ab47273fedff893c8ae22ec39ffc666d4fa6fc8b

MFC after:	3 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253772 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
[fixup] add Makefile changes that should have been committed in r253772

MFC after:	3 weeks
X-MFC with:	r253772


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253773 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Various fixes to the mlxen(4) driver:
- Remove an incorrect assertion that can trigger when downing an interface.
- Stop the interface during detach to avoid panics when unloading the
  driver.
- A few locking fixes to be more consistent with other FreeBSD drivers:
  - Protect if_drv_flags with the driver lock, not atomic ops
  - Hold the driver lock when adjusting multicast state.
  - Hold the driver lock while adjusting if_capenable.

PR:		kern/180791 [1,2]
Submitted by:	Shakar Klein @ Mellanox [1,2]
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253774 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Unbreak sysctl ABI changes introduced in r253662

Requested by:	bde


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253775 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Decouple yarrow from random(4) device.

* Make Yarrow an optional kernel component -- enabled by "YARROW_RNG" option.
  The files sha2.c, hash.c, randomdev_soft.c and yarrow.c comprise yarrow.

* random(4) device doesn't really depend on rijndael-*.  Yarrow, however, does.

* Add random_adaptors.[ch] which is basically a store of random_adaptor's.
  random_adaptor is basically an adapter that plugs in to random(4).
  random_adaptor can only be plugged in to random(4) very early in bootup.
  Unplugging random_adaptor from random(4) is not supported, and is probably a
  bad idea anyway, due to potential loss of entropy pools.
  We currently have 3 random_adaptors:
  + yarrow
  + rdrand (ivy.c)
  + nehemeiah

* Remove platform dependent logic from probe.c, and move it into
  corresponding registration routines of each random_adaptor provider.
  probe.c doesn't do anything other than picking a specific random_adaptor
  from a list of registered ones.

* If the kernel doesn't have any random_adaptor adapters present then the
  creation of /dev/random is postponed until next random_adaptor is kldload'ed.

* Fix randomdev_soft.c to refer to its own random_adaptor, instead of a
  system wide one.

Submitted by: arthurmesh@gmail.com, obrien
Obtained from: Juniper Networks
Reviewed by: obrien


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253779 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a missing prototype.

Pointy hat:	me


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Decouple yarrow from random(4) device.

* Make Yarrow an optional kernel component -- enabled by "YARROW_RNG" option.
  The files sha2.c, hash.c, randomdev_soft.c and yarrow.c comprise yarrow.

* random(4) device doesn't really depend on rijndael-*.  Yarrow, however, does.

* Add random_adaptors.[ch] which is basically a store of random_adaptor's.
  random_adaptor is basically an adapter that plugs in to random(4).
  random_adaptor can only be plugged in to random(4) very early in bootup.
  Unplugging random_adaptor from random(4) is not supported, and is probably a
  bad idea anyway, due to potential loss of entropy pools.
  We currently have 3 random_adaptors:
  + yarrow
  + rdrand (ivy.c)
  + nehemeiah

* Remove platform dependent logic from probe.c, and move it into
  corresponding registration routines of each random_adaptor provider.
  probe.c doesn't do anything other than picking a specific random_adaptor
  from a list of registered ones.

* If the kernel doesn't have any random_adaptor adapters present then the
  creation of /dev/random is postponed until next random_adaptor is kldload'ed.

* Fix randomdev_soft.c to refer to its own random_adaptor, instead of a
  system wide one.

Submitted by: arthurmesh@gmail.com, obrien
Obtained from: Juniper Networks
Reviewed by: obrien


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253786 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove useless cache operations.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@253787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The errata 727915 requires a different workaround for r2p0, we have to
explicitely clean/invalidate every cache line using way/set operations.


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