Only use the CPU ID register if SMP is defined. Some non-MPCore armv6 cpu,
such as the one found in the RPi, don't have it, and just hang when we try
to access it.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261419 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing file to Makefile.

MFC after:	1 month
X-MFC-with:	261342


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261420 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add driver for the ADT7460/ADT7467 fan controller found in later PowerBooks
and iBooks.  Original work by andreast.

MFC after:	1 month


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261421 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make gas accept any PowerPC instruction by default.  This is a local change,
and will not be submitted upstream.

Discussed with:	nwhitehorn,rdivacky
MFC after:	1 month


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261422 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add the imx sdhci controller.


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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261424 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
dhclient: change the pidfile's permissions to 644

This change permits non-root users to determine if dhclient is running
('service dhclient status wlan0').

Discussed with: mjg, cperciva


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Apply patch for CVE-2013-6393 [1] to fix heap-based buffer overflow when
parsing YAML tags.
Also apply a patch for hardenning the guards againt the issue

The only user in base in yaml is pkg(7) which uses the library a way that it is not affected

Submitted by:	delphij
Obtained from:	https://bugzilla.redhat.com/show_bug.cgi?id=1033990
MFC after:	3 days
Security:	CVE-2013-6393


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261431 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix the definition of hg_cmd.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Slightly deobfuscate read_file() and likely pessimize the runtime
performance by epsilon.
(Translation: elminate bogus macros that hid 'returns' making it hard
 to read and moved a block of code inline rather than at the end of the
 fuction where it was effectively a 'gosub' kind of goto).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In the 17 years since r30796, the mandatory keyword has never been used
in any files as far as I can tell, and is currently unused. Retire it.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't believe we have a requirement until after we've checked all the
known key words. This will make error messages slightly better in
weird corner cases, but should otherwise be a nop.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261437 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move the check for standard keyword + optional inclusion specifier to
its proper location. Otherwise you could have 'file.c standard pci'
without an error. This construct isn't in our tree, and has no well
defined meaning.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261438 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove some unnecessary code.  The offsets read from the first block are
overwritten a few lines bellow.

Reviewed by:	ray
Approved by:	adrian (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261439 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a logic error.  Because of this inflateReset() wasn't being called and
the output buffer wasn't being cleared between the inflate() calls,
producing zeroed output after the first inflate() call.

This fixes the read of mkuzip(8) images with geom_uncompress(4).

Reviewed by:	ray
Approved by:	adrian (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Better error messages when EOF is hit in the middle of a phrase.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261442 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
OpenSSH been updated to 6.5p1.
bmake has been updated to version 20140101.

Approved by:	hrs (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261443 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Slight cleanup to the error messaging to compress code vertically...


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a bug introduced in r261437 that failed to honor "optional
profiling-routine" to work, since profiling-routine is not really an
option or a device, but a special case elsewhere in the code.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261445 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Convert the loop by gotos into a for loop to improve readability. I
did this only with the inner loop for the token parsing, and not the
outer loop which was understandable enough when the extra layers of
looping went away...


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