summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2013-06-15 08:21:54 +0000
committered <ed@FreeBSD.org>2013-06-15 08:21:54 +0000
commit13f575ad68c2aec3fce74b3757e2eec57b2ceb70 (patch)
treeba755d529d7e5fe86012e60edc1574a3630b9b3d /sys/sparc64
parentf0462758541a0769eb12b982d90fc562e9165e19 (diff)
downloadFreeBSD-src-13f575ad68c2aec3fce74b3757e2eec57b2ceb70.zip
FreeBSD-src-13f575ad68c2aec3fce74b3757e2eec57b2ceb70.tar.gz
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.
Diffstat (limited to 'sys/sparc64')
-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 adafa57..09035d0 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);
OpenPOWER on IntegriCloud