Since the introduction of the new advanced boot menu (r222417), options like
"boot verbose", "single user mode", "ACPI" and more are now stateful boolean
menuitems rather than direct action-items.

A short-coming in this new menu system is that when a user sets a non-default
value in loader.conf(5), this non-default state is not reflected in the menu
-- leading to confusion as to whether the option was taking effect or not.

This patch adds dynamic menuitem constructors _and_ the necessary Forth
callbacks to initialize these stateful menuitems -- causing the aforementioned
menuitems to adhere to loader.conf(5) settings.

PR:		bin/172529
Approved by:	adrian (co-mentor)
MFC after:	21 days


git-svn-id: svn://svn.freebsd.org/base/head@241523 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Minor mdoc and language fixes.


git-svn-id: svn://svn.freebsd.org/base/head@241526 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove trailing whitespace.


git-svn-id: svn://svn.freebsd.org/base/head@241527 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add explicit check for not set time inside cam_periph_freeze_after_event().

System time is set later on boot process then initial bus scan by CAM.
Until that moment microtime() is equal to microuptime(), and if system
boots quickly, the value can be close to zero. That causes settle time
waiting even for buses that don't use reset during probe.

On my test system this reduces boot time by 1 second if USB enabled, or
by 4 seconds if USB disabled.  CAM waited for ctl2cam0 bus "settle".


git-svn-id: svn://svn.freebsd.org/base/head@241536 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
acpi_wmi: move wmi_info_list into sc

different instances of acpi_wmi couldn't properly share it and, in fact,
there was no reason to do that

MFC after:	10 days


git-svn-id: svn://svn.freebsd.org/base/head@241537 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
acpi_thermal: when _ACx is tripped, all _ALi i>= x should be on

... and not just _ALx as it is now.

MFC after:	20 days


git-svn-id: svn://svn.freebsd.org/base/head@241538 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove cvs/cvsup reference.


git-svn-id: svn://svn.freebsd.org/base/head@241539 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
pciereg_cfg*: use assembly to access the mem-mapped cfg space

AMD BKDG for CPU families 10h and later requires that the memory
mapped config is always read into or written from al/ax/eax register.

Discussed with:	kib, alc
Reviewed by:	kib (earlier version)
MFC after:	25 days


git-svn-id: svn://svn.freebsd.org/base/head@241540 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Minor mdoc improvements. Also remove unnecessary csup reference.


git-svn-id: svn://svn.freebsd.org/base/head@241541 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't document the PORTSSUPFILE variable. Even though this still works,
try to discourage users from depending on it.

Approved by:	joel
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@241542 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Bump .Dd
Approved by:	joel


git-svn-id: svn://svn.freebsd.org/base/head@241543 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
mdoc: don't nest displays. The markup here isn't adding anything anyway.
Fixes a mandoc lint warning.

Discussed with:	brueffer, Jason McIntyre <jmc@kerhand.co.uk>


git-svn-id: svn://svn.freebsd.org/base/head@241544 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
mdoc: avoid nested displays.


git-svn-id: svn://svn.freebsd.org/base/head@241545 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix defines in r241245. We actually don't define FreeBSD.

Reported & tested by:	Oleg Ginzburg


git-svn-id: svn://svn.freebsd.org/base/head@241546 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a miss from r241344: in ip_mloopback() we need to go to
net byte order prior to calling in_delayed_cksum().

Reported by:	 Olivier Cochard-Labbe <olivier cochard.me>


git-svn-id: svn://svn.freebsd.org/base/head@241547 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Replace the XXX comment with the proper description.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@241548 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Print the %rip value for uprintf_signal.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@241549 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFamd64: add machdep.uprintf_signal.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@241550 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for the Buffalo RUF2 flash drive.

PR:		usb/166848
Submitted by:	Andrew Gregory <andrew@scss.com.au>
Reviewed by:	hselasky
Approved by:	cperciva (implicit)
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@241551 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for  Feiya Elango USB MicroSD

PR:		usb/153599
Submitted by:	CyberLeo <cyberleo@cyberleo.net>
Approved by:	cperciva (implicit)
MFC after:	3 days


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