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.
This commit is contained in:
Ed Schouten 2013-06-15 08:21:54 +00:00
parent 72790363a3
commit 1f7e35dce5

View File

@ -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);