MFC r234697:
  Fixed a misspelling of OLD_LIBS in r232671 by pluknet@.
  (The patch in the PR 165523 had this spelled correctly.)


git-svn-id: svn://svn.freebsd.org/base/stable/9@234698 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234156:
We don't need kcopy() in any of the remaining places it is used, so
remove it.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234703 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234517:
Make sure all pending operations have completed on the existing thread
before (potentially) migrating it to a different CPU.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234589:
Correctly specify assembler constrains for synchronization instructions.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234542:
Organize some members of ucontext_t in the same order they are in the
trap frame. These are usually not used, and so this changes very little.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234706 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234579:
Avoid a lock order reversal in pmap_extract_and_hold() from relocking
the page. This PMAP requires an additional lock besides the PMAP lock
in pmap_extract_and_hold(), which vm_page_pa_tryrelock() did not release.

Suggested by:	kib


git-svn-id: svn://svn.freebsd.org/base/stable/9@234707 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234615:
Fix copy-and-paste error in r230400 that would cause ppc64 executables
built with -fvisibility=hidden to fail to link with a message about
hidden symbol main being referenced from a DSO.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234708 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC:	r233580

- Do not clobber softc when psm(4) is reintialized.
- Make INITAFTERSUSPEND flag independent of HOOKRESUME flag.
- Automatically set INITAFTERSUSPEND flag when ALPS GlidePoint is detected.
- Always probe Synaptics Touchpad.  Allow MOUSE_SYN_GETHWINFO ioctl and
automatically set INITAFTERSUSPEND flag when a supported device is detected,
regardless of "hw.psm.synaptics_support" tunable setting.
- Update psm(4) to reflect the above changes.
- Remove long-time defunct SYNCHACK flag while I am in the neighborhood.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234713 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r232157, r232158:

r232157:
  Fix various typos in manual pages.

  Submitted by: amdmi3
  PR:           165431

r232158:
  Whitespace cleanup:
    o Wrap sentences on to new lines
    o Cleanup trailing whitespace


git-svn-id: svn://svn.freebsd.org/base/stable/9@234717 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234289:

Add files and directories to be cleaned up if WITHOUT_GCC is in effect
to OptionalObsoleteFiles.inc.


git-svn-id: svn://svn.freebsd.org/base/stable/9@234720 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r232159:
  Whitespace cleanup:
   o Wrap sentences on to new lines
   o Rewrap lines where possible while trying to keep the diff to a
     minimum


git-svn-id: svn://svn.freebsd.org/base/stable/9@234721 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r234502:

After r217375, some startup objects under lib/csu are built in a special
way: first they are compiled to assembly, then some sed'ing is done on
the assembly, and lastly the assembly is compiled to an object file.

This last step is done using ${CC}, and not ${AS}, because when the
compiler is clang, it outputs directives that are too advanced for our
old gas.  So we use clang's integrated assembler instead.  (When the
compiler is gcc, it just calls gas, and nothing is different, except one
extra fork.)

However, in the .s to .o rules in lib/csu/$ARCH/Makefile, I still passed
CFLAGS to the compiler, instead of ACFLAGS, which are specifically for
compiling .s files.

In case you are using '-g' for debug info anywhere in your CFLAGS, it
causes the .s files to already contain debug information in the assembly
itself.  In the next step, the .s files are also compiled using '-g',
and if the compiler is clang, it complains: "error: input can't have
.file dwarf directives when -g is used to generate dwarf debug info for
assembly code".

Fix this by using ${ACFLAGS} for compiling the .s files instead.

Reported by:	jasone


git-svn-id: svn://svn.freebsd.org/base/stable/9@234726 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/svn_stable_9' into svn_stable_9