Don't hardcode paths to MFS_IMAGE in the kernel config.  When they don't
exist they don't cause "make tinderbox" to fail.

Reported by:	jhb


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240139 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update to a pruned 0.16.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240141 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
After r240104, make sure the hpt27xx driver also compiles with clang,
when it is statically linked into the kernel.

MFC after:	2 weeks
X-MFC-With:	r240104


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240144 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Simplify VM code by using vmspace_wired_count() for counting wired
memory of a process.

Reviewed by:	avg
Approved by:	kib (mentor)
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240145 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- If the PCIe "SLOT" flag is set, include this in the capability output
- Fix printing of PCIe interrupt number, the shift was incorrect.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240146 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Using %p in a format string requires a void *.

MFC after: 10 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240148 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add #defines for the bits in the PCI Express SLOT registers.  Names
have been chosen based on the bit names in the PCI Express Base
Specification 3.0, and to match the predominant style of the existing
bit definitions.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240150 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libc/i386: Do not export .cerror.

For some reason, libc exports the symbol .cerror (HIDENAME(cerror)), albeit
in the FBSDprivate_1.0 version. It looks like there is no reason for this
since it is not used from other libraries. Given that it cannot be accessed
from C and its strange calling convention, it is rather unlikely that other
things rely on it. Perhaps it is from a time when symbols could not be
hidden.

Not exporting .cerror causes it to be jumped to directly instead of via the
PLT.

This change also takes advantage of .cerror's new status by not saving and
loading %ebx before jumping to it. (Therefore, .cerror now saves and loads
%ebx itself.) Where there was a conditional jump to a jump to .cerror, the
conditional jump has been changed to jump to .cerror directly (many modern
CPUs don't do static prediction and in any case it is not much of a benefit
anyway).

This change makes libc.so.7 a few kilobytes smaller.

Reviewed by:	kib


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240152 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Typo fix and minor word swap.

PR:		171356
Submitted by:	bdrewery
MFC After:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240153 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix test cases to work with the latest version of the API.


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

Obtained from:	DragonFly


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240155 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for demangling C++ symbols. This requires linking libproc with
libc++rt/libsupc++.

Discussed with:	theraven


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240156 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Get rid of a gcc'ism.

MFC after: 10 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240158 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make r230454 more readable and vendor-like.

PR:		kern/171380
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240162 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix "Corrupted DWARF expression" from (k)gdb.

Google turned up Debian bug 405116, which describes the problem in
sufficient detail to identify the overflowing variables.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240163 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add Intel Ivy Bridge support to hwpmc(9).
Update offcore RSP token for Sandy Bridge.
Note: No uncore support.

Will works on Family 6 Model 3a.

MFC after: 1 month
Tested by: bapt, grehan


git-svn-id: svn+ssh://svn.freebsd.org/base/head@240164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add TRIM support, enabled by default.
Fix a bug installing components from a localPath.
Allow autosizing of any partition, not just the last partition.
Adjust how ZFS is laid out to work with Boot Environments.

Submitted by:	kmoore
Obtained from:	PC-BSD
MFC after:	3 days


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