freebsd-skq/sys/i386
kib 3d18a9d66f Add atomic_load(9) and atomic_store(9) operations.
They provide relaxed-ordered atomic access semantic.  Due to the
FreeBSD memory model, the operations are syntaxical wrappers around
the volatile accesses.  The volatile qualifier is used to ensure that
the access not optimized out and in turn depends on the volatile
semantic as implemented by supported compilers.

The motivation for adding the operation is to help people coming from
other systems or knowing the C11/C++ standards where atomics have
special type and require use of the special access operations.  It is
still the case that FreeBSD requires plain load and stores of aligned
integer types to be atomic.

Suggested by:	jhb
Reviewed by:	alc, jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D13534
2017-12-19 09:59:20 +00:00
..
acpica Minor cleanups found while fixing a bug involving double mapping of low 2017-12-15 03:05:14 +00:00
bios sys/i386: further adoption of SPDX licensing ID tags. 2017-11-27 15:08:52 +00:00
cloudabi32 Use TO_PTR() to convert integers to pointers. 2017-11-26 14:45:56 +00:00
conf i386: Bump KSTACK_PAGES default to match amd64 2017-12-11 04:32:37 +00:00
i386 Also forgotten in the previous that removed the permanent double mapping 2017-12-18 14:29:48 +00:00
ibcs2 Disable vim syntax highlighting. 2017-11-28 18:23:17 +00:00
include Add atomic_load(9) and atomic_store(9) operations. 2017-12-19 09:59:20 +00:00
isa sys/i386: further adoption of SPDX licensing ID tags. 2017-11-27 15:08:52 +00:00
linux Disable vim syntax highlighting. 2017-11-28 18:23:17 +00:00
pci sys/i386: further adoption of SPDX licensing ID tags. 2017-11-27 15:08:52 +00:00
Makefile