MFC r247396:

Map libraries linked with -Ttext-segment=base_addr at base_addr.
Normal libraries have base address 0 and are unaffected by this change.

PR:		176216
Submitted by:	Damjan Jovanovic <damjan.jov@gmail.com>
Reviewed by:	kib


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247846 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247268:
 Several cleanups and fixes to mxge:

 - Remove vestigial null pointer tests after malloc(..., M_WAITOK).

 - Remove vestigal qualhack union

 - Use strlcpy() instead of the error-prone strncpy() when parsing
   EEPROM and copying strings

 - Check the MAC address in the EEPROM strings more strictly.

 - Expand the macro MXGE_NEXT_STRING() at its only user. Due to a typo,
   the macro was very confusing.

 - Remove unnecessary buffer limit check.  The buffer is double-NUL
   terminated per construction.

PR:             kern/176369
Submitted by:   Christoph Mallon <christoph.mallon gmx.de>


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

Add i/o error counters to hastd(8) and make hastctl(8) display
them.  This may be useful for detecting problems with HAST disks.

Discussed with and reviewed by: pjd


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247281, r247345:

r247281:

Add i/o error counters to hastd(8) and make hastctl(8) display
them.  This may be useful for detecting problems with HAST disks.

Discussed with and reviewed by: pjd

r247345:

Fix casting.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247867 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247382:
  RX checksum offloading on old Yukon controllers seem to cause more
  problems.  Disable RX checksum offloading on controllers that don't
  use new descriptor format but give chance to enable it with
  ifconfig(8).


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247872 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246246,246254: print compiler version in the kernel banner


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247874 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246247: x86 suspend/resume: suspend pics and pseudo-pics in reverse order


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247877 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246248: cpususpend_handler: mark AP as resumed only after fully
setting up lapic


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247878 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r233579,236403,236408: make interrupt flags management closer to head

r233579: Restore interrupt state after executing AcpiEnterSleepState().
r236403,236408: acpi_wakeup_machdep/acpi_sleep_machdep

The merged changes are modified a bit to account for lots of missing
acpi and acpica MFCs.
For the same reason MFC to stable/8 is not practical.

MFC slackers:	iwasaki, jkim


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247881 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246250,246252: acpi: after wakeup from a state > S1 re-enable
SCI_EN with a direct write


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247883 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246251: acpi: clear power button status bit after waking up


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247884 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246245,246324: ng_ether: track interface renaming


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247886 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246243: uart: add resume method and enable it for attachments on
the most common x86 buses


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247887 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246532: zfs_vget, zfs_fhtovp: properly handle the z_shares_dir object


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247888 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247854:
Fix compile warning by including ctype.h for isdigit().


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@247896 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247399:
The .journal file needs to reside on the ROOTINO which must not extend
beyond direct blocks. A typo caused this check to fail.


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

    Only set the barrier flag if the feature was negotiated

Approved by:	grehan (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@248026 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247560:
Make the default implementation of the VOP_VPTOCNP() fail if the
directory entry, matched by the inode number, is ".".


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

- Use strdup(9) instead of reimplementing it.
- Use __DECONST instead of strange casts.
- Reduce code duplication and simplify name2oid().

PR:		176373
Submitted by:	Christoph Mallon


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@248034 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r247565, r247590

- Make tables, device ID strings etc const.
- Use NULL instead of 0 for pointers.
- Remove redundant bzero(9)'ing of the softc.
- Remove redundant/unused softc members.
- Don't allocate MSI/MSI-X as RF_SHAREABLE.
- Re-use bus accessor macros instead of duplicating them.
- In bce_miibus_{read,write}_reg(), remove superfluous limiting of the PHY
  address (missed in r213893).


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