aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2013-06-15 08:21:54 +0000
committerEd Schouten <ed@FreeBSD.org>2013-06-15 08:21:54 +0000
commit1f7e35dce5175d65e2c718772bf8f31775d43f29 (patch)
treeba755d529d7e5fe86012e60edc1574a3630b9b3d /sys
parent72790363a33e79cd478320d2cd8b847215cc3181 (diff)
downloadsrc-1f7e35dce5175d65e2c718772bf8f31775d43f29.tar.gz
src-1f7e35dce5175d65e2c718772bf8f31775d43f29.zip
Stick to using the documented atomic(9) API.
The atomic_store_ptr() function is not part of the atomic(9) API. We only provide a version with a release barrier.
Notes
Notes: svn path=/head/; revision=251782
Diffstat (limited to 'sys')
-rw-r--r--sys/sparc64/sparc64/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c
index adafa578d31f..09035d0e8faf 100644
--- a/sys/sparc64/sparc64/pmap.c
+++ b/sys/sparc64/sparc64/pmap.c
@@ -2246,7 +2246,7 @@ pmap_activate(struct thread *td)
pm->pm_context[curcpu] = context;
#ifdef SMP
CPU_SET_ATOMIC(PCPU_GET(cpuid), &pm->pm_active);
- atomic_store_ptr((uintptr_t *)PCPU_PTR(pmap), (uintptr_t)pm);
+ atomic_store_rel_ptr((uintptr_t *)PCPU_PTR(pmap), (uintptr_t)pm);
#else
CPU_SET(PCPU_GET(cpuid), &pm->pm_active);
PCPU_SET(pmap, pm);