Remove daft KASSERT.


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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259030 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Replace the magic numbers with something more readable.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259031 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for the MediaTek/Ralink RT5572 chipset.
Committed over the TP-LINK TL-WDN3200 (RT5572) on amd64 with WPA.

While here, add my copyright.


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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259033 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make the sysctl node read-only.

Approved by:	adrian (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259034 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove unnecessary includes and an unused softc variable.  While here apply
two minor style(9) fixes.

Approved by:	adrian (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259035 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move the GPIOBUS_SET_PINFLAGS(..., ..., pin, GPIO_PIN_OUTPUT) to led(4)
control callback function.  This makes gpioled(4) works even if the pin
is accidentally set to an input.

Approved by:	adrian (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259036 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix the pin value reading on AM335x.  Because of the inverted logic it was
always returning '0' for all the reads, even for the outputs.  It is now
known to work with gpioiic(4) and gpioled(4).

Approved by:	adrian (mentor)
Tested on:	BBB


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259037 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Although not strictly required to boot a 64MB board, bump
vm_max_virtual_address to be KERNVIRTADDR + 256MB. This allows some
future shock protection since the KVA requirements have gone up since
the unmapped changes have gone in, as well as preventing us from
overlapping with the hardware devices, which we map at 0xd0000000,
which we'd hit with anything more than 85MB...

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259039 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
mdoc: remove EOL whitespace.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not force to run atexit handlers, which text comes from a dso
owning the handle passed to __cxa_finalize() but which are registered
by other dso, when the process is inside exit(3).

Running them makes the destruction order wrong, and there is hope that
such destructors would not call dlclose(3), since it is pointless at
this stage of the process existence.

The change effectively disables the r211706 after the exit(3) is
called.

Reported and tested by:	Michael Gmelin <freebsd@grem.de>
Analyzed by:	dim
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259042 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Build an allocator for the aligned memory on top of the rtld-private
malloc.

Reviewed by:	kan
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259043 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
For variant II static TLS, properly align tls segments.  Pre-calculate
the max required alignment for the static tls segments, and honor it
when carving the pieces for next module, from the static space.  Use
aligned allocator to get properly-aligned dynamic blocks.

Reported by:	dt71@gmx.com
Reviewed by:	kan
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259044 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Disallow optimizations which potentially remove boundary checks
for signed values due to a compiler authors considering integer
overflow as impossible.

The change follows suit of other projects taking the same measure.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259045 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix compilation when the "USB_DEBUG" option is set.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259046 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Split set -x output into a separate function.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259047 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Two new cxgbetool subcommands to set up scheduler classes and to bind
them to NIC queues.

Obtained from:	Chelsio


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259048 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix td_frame flags for i386.

Submitted by:	jilles

Sponsored by:	The FreeBSD Foundation


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

X-MFC-With:	r258632


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