From owner-freebsd-ppc Mon Sep 30 9: 3:20 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD3EA37B401; Mon, 30 Sep 2002 09:03:19 -0700 (PDT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 048B843E42; Mon, 30 Sep 2002 09:03:15 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id MAA11562; Mon, 30 Sep 2002 12:03:14 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g8UG2i009404; Mon, 30 Sep 2002 12:02:44 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15768.30116.381592.891890@grasshopper.cs.duke.edu> Date: Mon, 30 Sep 2002 12:02:44 -0400 (EDT) To: freebsd-ppc@freebsd.org Cc: jkh@freebsd.org Subject: atomic.h vs atomic.s X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG When poking around, trying to figure out my mcl problem, I noticed that the atomic.s code uses an eieio followed by a sync, whereas the code in atomic.h uses just eieio. From my (admittedly very limited) knowledge of ppc, I'd think we should be using just sync (like netbsd does). Or it could be that the atomic stwcx instruction implies a sync.. Jordan: Are we allowed to use the Darwin sources as a reference for things like this? Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message