From owner-p4-projects@FreeBSD.ORG Thu Mar 3 22:11:48 2005 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 678C716A4D0; Thu, 3 Mar 2005 22:11:48 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43D4716A4CE for ; Thu, 3 Mar 2005 22:11:48 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E71743D49 for ; Thu, 3 Mar 2005 22:11:48 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j23MBmJJ013013 for ; Thu, 3 Mar 2005 22:11:48 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j23MBlia013010 for perforce@freebsd.org; Thu, 3 Mar 2005 22:11:47 GMT (envelope-from jhb@freebsd.org) Date: Thu, 3 Mar 2005 22:11:47 GMT Message-Id: <200503032211.j23MBlia013010@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Subject: PERFORCE change 72454 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2005 22:11:49 -0000 http://perforce.freebsd.org/chv.cgi?CH=72454 Change 72454 by jhb@jhb_slimer on 2005/03/03 22:11:16 Clobber all memory for atomic ops with an acquire barrier. Suggested by: alc Affected files ... .. //depot/projects/smpng/sys/sparc64/include/atomic.h#7 edit Differences ... ==== //depot/projects/smpng/sys/sparc64/include/atomic.h#7 (text+ko) ==== @@ -90,6 +90,7 @@ itype(sz) v; \ v = atomic_cas(p, e, s, sz); \ membar(LoadLoad | LoadStore); \ + __asm __volatile("" : : : "memory"); \ v; \ }) @@ -115,6 +116,7 @@ itype(sz) t; \ t = atomic_op(p, op, v, sz); \ membar(LoadLoad | LoadStore); \ + __asm __volatile("" : : : "memory"); \ t; \ }) @@ -132,6 +134,7 @@ itype(sz) v; \ v = atomic_load(p, sz); \ membar(LoadLoad | LoadStore); \ + __asm __volatile("" : : : "memory"); \ v; \ })