diff options
author | Ed Schouten <ed@FreeBSD.org> | 2013-06-15 08:21:54 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2013-06-15 08:21:54 +0000 |
commit | 1f7e35dce5175d65e2c718772bf8f31775d43f29 (patch) | |
tree | ba755d529d7e5fe86012e60edc1574a3630b9b3d /sys/sparc64 | |
parent | 72790363a33e79cd478320d2cd8b847215cc3181 (diff) | |
download | src-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/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/pmap.c | 2 |
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); |