Allow -march=armv7a on the gcc command line, for compatibility with clang.
This will result in __ARM_ARCH_7A__ being defined during the compile.

When compiling with gcc, it will still only generate armv6 opcodes itself,
but should pass the arch to gas so that inline asm can use v7 opcodes.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276045 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add __FreeBSD_version guards around hsearch_r to ease MFCing the code to
stable/10

It was added when __FreeBSD_version was ~1100027


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276046 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add -march=armv7a to the kernel compile for all ARM systems which are v7a.

Submitted by:	Michal Meloun <meloun@miracle.cz>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276047 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Replace the clock divisor terms with values that also result in a 1 MHz
clock, but actually work on real hardware, unlike the original set of
values I chose.

PR:		195009
Submitted by:	Scott Ellis <jumpnowtek@gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276049 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Build selective portions of gnu/usr.bin/texinfo as part of build-tools to
ensure that building on a host without makeinfo (i.e. a host where
make delete-old -DWITHOUT_INFO was run), then building with MK_INFO == yes
doesn't manifest in build errors when building info pages

This manifested itself like the following when I was build testing an MFC
change on stable/10:

  makeinfo --no-split -I /usr/src/gnu/lib/libregex/doc -I /usr/src/gnu/lib/libregex/doc regex.texi  -o regex.info
  makeinfo: not found
  *** [regex.info] Error code 127

make[6]: stopped in /usr/src/gnu/lib/libregex/doc
1 error

Tested on a head VM without makeinfo installed and by building with MK_INFO=yes

MFC after: 1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276052 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update the text for building texinfo with build-tools to reflect the fact
that make install is being called as well

MFC after: 1 week
X-MFC with: r276052


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276053 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document flags of vm_page allocation functions.

Reviewed by:	alc


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276054 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not clear flag that vm_page_alloc() doesn't support.

Submitted by:	kib


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276055 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add flag VM_ALLOC_NOWAIT for vm_page_grab() that prevents sleeping and
allows the function to fail.

Reviewed by:	kib, alc
Sponsored by:	Nginx, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276056 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In sbappend*() family of functions clear M_PROTO flags of incoming
mbufs. sbappendstream() already does this in m_demote().

PR:		196174
Sponsored by:	Nginx, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276058 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Simplify the use of locks where possible, remove the locking when it is not
required.

Simplify the code a little bit.

Reviewed by:	andrew (previous version)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276059 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove some leftovers from OMAP3 support.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276060 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Set up default shstrtab entries at shstrtab initialization

Instead of waiting until the addition of the first non-default entry.
This fixes a segfault when strip(1) is asked to remove every section from
an object file.

Upstream elftoolchain ticket 463

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1341


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276061 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add AArch64 machine time and relocations for readelf

Reviewed by:	andrew
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1333


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276062 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Standardise on illumos for #ifdef's in zvol.c

Also correct as per style(9) on the use of #ifdef comments.

This is a no-op change as pre-cursor to a full cleanup and merge with
upstream zvol changes.

Sponsored by:	Multiplay


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276063 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
vt: register the memory regions used by the vt drivers

Current VT drivers don't register the memory regions they use with the
nexus. This patch makes vt_vga and vt_efifb register the memory regions they
use.

This is needed (at least) for Xen support, since the FreeBSD kernel will try
to use the holes in the memory map to map memory from other domains and
setup it's grant table.

Sponsored by:		Citrix Systems R&D
Reported by:		sbruno
Tested by:		emaste
Reviewed by:		ray
PR:			195537
Differential Revision:	https://reviews.freebsd.org/D1291


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276064 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Explicitly treat timeouts when waiting for IBF or OBF to change state as an
error.  This fixes occasional hangs in the IPMI kcs thread when using
ipmitool locally.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276065 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Refactor zvol locking to minimise diff with upstream

Use #define zfsdev_state_lock spa_namespace_lock instead of replacing all
zfsdev_state_lock with spa_namespace_lock to minimise changes from upstream.

Differential Revision:	D1302
MFC after:	1 month
X-MFC-With	r276063
Sponsored by:	Multiplay


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276066 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix panic when resizing ZFS zvol's

Resizing a ZFS ZVOL with debug enabled would result in a panic due to
recursion on dp_config_rwlock.

The upstream change "3464 zfs synctask code needs restructuring" changed
zvol_set_volsize to avoid the recursion on dp_config_rwlock, but this was
missed when originally merged in by r248571 due to significant differences
in our codebases in this area.

These changes also relied on bring in changes from upstream:
3557 dumpvp_size is not updated correctly when a dump zvol's size is
changed, which where also not present.

In order to help prevent future issues in this area a direct comparison
and diff minimisation from current upstream version (b515258) of zvol.c.

Differential Revision:	https://reviews.freebsd.org/D1302
MFC after:	1 month
X-MFC-With:	r276063 & r276066
Sponsored by:	Multiplay


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276069 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix multiple ntp vulnerabilities.

Reviewed by:	roberto (earlier revision), philip
Security:	CVE-2014-9293, CVE-2014-9294
Security:	CVE-2014-9295, CVE-2014-9296
Security:	FreeBSD-SA-14:31.ntp

Differential Revision: https://reviews.freebsd.org/D1343


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