From owner-svn-src-head@FreeBSD.ORG Sat Jun 15 08:21:54 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A1331157; Sat, 15 Jun 2013 08:21:54 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 935061DE0; Sat, 15 Jun 2013 08:21:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5F8LsPu089232; Sat, 15 Jun 2013 08:21:54 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5F8Lst5089231; Sat, 15 Jun 2013 08:21:54 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201306150821.r5F8Lst5089231@svn.freebsd.org> From: Ed Schouten Date: Sat, 15 Jun 2013 08:21:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251782 - head/sys/sparc64/sparc64 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jun 2013 08:21:54 -0000 Author: ed Date: Sat Jun 15 08:21:54 2013 New Revision: 251782 URL: http://svnweb.freebsd.org/changeset/base/251782 Log: 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. Modified: head/sys/sparc64/sparc64/pmap.c Modified: head/sys/sparc64/sparc64/pmap.c ============================================================================== --- head/sys/sparc64/sparc64/pmap.c Sat Jun 15 08:15:22 2013 (r251781) +++ head/sys/sparc64/sparc64/pmap.c Sat Jun 15 08:21:54 2013 (r251782) @@ -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);