diff options
| author | Pranith Kumar | 2016-05-02 16:20:52 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-05-23 16:53:43 +0200 |
| commit | dfc007f7f7aab982a8c22cbcb783d72b0db99705 (patch) | |
| tree | 65c9294171c873e4164fef9ef31ed2b68e6d6260 | |
| parent | exec.c: Ensure right alignment also for file backed ram (diff) | |
| download | qemu-dfc007f7f7aab982a8c22cbcb783d72b0db99705.tar.gz qemu-dfc007f7f7aab982a8c22cbcb783d72b0db99705.tar.xz qemu-dfc007f7f7aab982a8c22cbcb783d72b0db99705.zip | |
docs/atomics.txt: Update pointer to linux macro
Add a missing end brace and update doc to point to the latest access
macro. ACCESS_ONCE() is deprecated.
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Message-Id: <1462198852-28694-1-git-send-email-bobby.prani@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | docs/atomics.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/atomics.txt b/docs/atomics.txt index ef285e3c2a..bba771ecd6 100644 --- a/docs/atomics.txt +++ b/docs/atomics.txt @@ -62,7 +62,7 @@ operations: typeof(*ptr) atomic_fetch_sub(ptr, val) typeof(*ptr) atomic_fetch_and(ptr, val) typeof(*ptr) atomic_fetch_or(ptr, val) - typeof(*ptr) atomic_xchg(ptr, val + typeof(*ptr) atomic_xchg(ptr, val) typeof(*ptr) atomic_cmpxchg(ptr, old, new) all of which return the old value of *ptr. These operations are @@ -328,7 +328,7 @@ and memory barriers, and the equivalents in QEMU: - atomic_read and atomic_set in Linux give no guarantee at all; atomic_read and atomic_set in QEMU include a compiler barrier - (similar to the ACCESS_ONCE macro in Linux). + (similar to the READ_ONCE/WRITE_ONCE macros in Linux). - most atomic read-modify-write operations in Linux return void; in QEMU, all of them return the old value of the variable. |
