Add a comma to satisfy Igor.


git-svn-id: svn://svn.freebsd.org/base/head@249966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Unbreak <stdatomic.h> on ARM + Clang.

Clang only supports atomic operations for ARMv6. For non-ARMv6, we still
need to emit these functions.

Clang's prototype for these functions slightly differs, as it is truly
based on GCC's documentation. It requires the use of signed types, but
also requires varargs. Still, we are not allowed to simply implement
this function directly. Cleverly work around this by implementing it
under a different name and using __strong_reference().


git-svn-id: svn://svn.freebsd.org/base/head@249968 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use C11 <stdatomic.h> instead of our non-standard <machine/atomic.h>.

Reviewed by:	pjd


git-svn-id: svn://svn.freebsd.org/base/head@249969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Partially revert my last change.

I forgot that I still had a locally applied patch to my copy of Clang
that needs to be pushed in before we should use C11 atomics.


git-svn-id: svn://svn.freebsd.org/base/head@249970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove references to MK_IDEA.

As of r249959, we want to build with IDEA support enabled
unconditionally. As this change removed the MK_IDEA flag, update these
Makefiles accordingly.


git-svn-id: svn://svn.freebsd.org/base/head@249971 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add reset support to the Wii.


git-svn-id: svn://svn.freebsd.org/base/head@249973 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Return "descr" field alike to "Intel RAID1 volume" for GEOM RAID to make
it look better in bsdinstall.


git-svn-id: svn://svn.freebsd.org/base/head@249974 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add const qualifier to the dst parameter of the ifnet if_output method.


git-svn-id: svn://svn.freebsd.org/base/head@249976 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Change maxio to reflect variable hardware configurations.

If max_sg_length is 0, then we default to 16

If max_sg_length is less than CISS_MAX_SG_ELEMENTS, then
we will set round the value of max_sg_length to the nearest
power of 2 and use it to align maxio.

Else, we will use CISS_MAX_SG_ELEMENTS for our calculations.

Thanks to scottl for working me through the history and providing
the basis for this patch.

Submitted by:	scott
Obtained from:	Yahoo! Inc.
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@249977 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
intro(2): Fix some errors in ENFILE and EMFILE descriptions.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@249979 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFprojects/camlock r249541:
Give periph validity flag own periph reference.  That slightly simplifies
the release logic and covers hypothetical case if lock is dropped inside
the periph_oninval() method.


git-svn-id: svn://svn.freebsd.org/base/head@249980 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFprojects/camlock r249542:
Remove ADA_FLAG_PACK_INVALID flag. Since ATA disks have no concept of media
change it only duplicates CAM_PERIPH_INVALID flag, so we can use last one.

Slightly cleanup DA_FLAG_PACK_INVALID use.


git-svn-id: svn://svn.freebsd.org/base/head@249981 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
syslogd: Use closefrom() instead of getdtablesize()/close() loop.

When syslogd forks a process for '|' destinations, it closes all file
descriptors greater than 2.

Use closefrom() for this instead of a getdtablesize()/close() loop because
it is both faster and avoids leaving file descriptors open because the limit
was lowered after they were opened.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@249983 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Don't consider jobs -s/-p as reporting the status of jobs.

This ensures that something like j=$(jobs -p) does not prevent any
status from being written to the terminal.


git-svn-id: svn://svn.freebsd.org/base/head@249984 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libthr: Fix a parameter name in an internal header file.


git-svn-id: svn://svn.freebsd.org/base/head@249985 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Avoid some lookup restarts in vm_radix_lookup_{ge,le}().

Sponsored by:	EMC / Isilon Storage Division


git-svn-id: svn://svn.freebsd.org/base/head@249986 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge libcxxrt c812a07cd2f95c1403baf0bbe0366e7618d1d6d3:

* Don't call the _fast version of the TLS accessor in terminate() or
  unexpected().
  1) TLS may not have been set up yet.
  2) When we're in one of these functions, Really Bad Stuff has
     happened and potentially saving a few cycles really isn't
     important.
* Merge in fixes from FreeBSD trunk to make atomics work with recent
  clang.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@249993 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Enable improved <tgmath.h> for Clang even when not using C11.

By using __has_extension(c_generic_selections), we can explicitly test
whether we're dealing with a version of Clang that supports _Generic().
That way we can use the improved <tgmath.h> code, even when not using
-std=c11. This massively reduces the compilation time when invoking
these functions.


git-svn-id: svn://svn.freebsd.org/base/head@249995 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing static qualifiers

Reviewed by:	ed, jilles
MFC After:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@249996 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add Xilinx Zynq ARM/FPGA SoC support to FreeBSD/arm port.

Submitted by:	Thomas Skibo <ThomasSkibo (at) sbcglobal.net>
Reviewed by:	wkoszek, freebsd-arm@ (no objections raised)


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