- Compute the correct size to reallocate when doubling the size of the
  array of loaded objects to avoid a buffer overrun.
- Use reallocf() to avoid leaking memory if the realloc() fails.

PR:		kern/175648
Submitted by:	yuri@rawbw.com (1)
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246035 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Mark 'ticks', 'time_second', and 'time_uptime' as volatile to prevent the
compiler from caching their values in tight loops.

Reviewed by:	bde
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246037 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge two bug fixes from the vendor branch.

Reported by:	pjd


git-svn-id: svn://svn.freebsd.org/base/head@246040 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix white spaces for style consistency.


git-svn-id: svn://svn.freebsd.org/base/head@246041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix two misusages of return_*() macros for ACPICA.

Noticed by:	avg


git-svn-id: svn://svn.freebsd.org/base/head@246042 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add simple clock driver and ehci glue code for a10
Update dts and kernel config

Approved by: gonzo@


git-svn-id: svn://svn.freebsd.org/base/head@246057 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/master'