Add support for Colibri VF50 Evaluation Board.

Colibri VF50 is a SODIMM200 Vybrid Family core module
and development board produced by Toradex AG.

Sponsored by:	Machdep, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261411 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make prefaulting more aggressive on hard faults.  Previously, we would only
map a fraction of the pages that were fetched by vm_pager_get_pages() from
secondary storage.  Now, we map them all in order to avoid future soft
faults.  This effect is most evident when a memory-mapped file is accessed
sequentially.  Previously, there were 6 soft faults for every hard fault.
Now, these soft faults are eliminated.

Sponsored by:	EMC / Isilon Storage Division


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add driver for Display Control Unit (DCU4).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261413 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't call device_set_ivars() for the mmchs, it doesn't seem to be used,
and it overrides the ivars set by the simplebus.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Change the way pcpu and curthread are stored per-core:
the old way was to store pcpu in a register, and get curthread from pcpu,
which is not very atomic, and led to issues if the thread was migrated
to another core between the time we got the pcpu address and the time we
got curthread.
Instead, we now store curthread where pcpu used to be store, and we
calculate the pcpu address based on the cpu id.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261415 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
o Add prototype for tcon_bypass() used by dcu4
o Add register definition


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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261417 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Invalidate cachelines for bounce pages on PREREAD too, there may still be
stale entries from a previous transfer.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@261418 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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