From owner-freebsd-arch Sat Dec 29 12:16:45 2001 Delivered-To: freebsd-arch@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 07B8C37B421; Sat, 29 Dec 2001 12:16:36 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id fBTKGWR01735; Sat, 29 Dec 2001 12:16:32 -0800 (PST) (envelope-from dillon) Date: Sat, 29 Dec 2001 12:16:32 -0800 (PST) From: Matthew Dillon Message-Id: <200112292016.fBTKGWR01735@apollo.backplane.com> To: John Baldwin Cc: Michal Mertl , arch@FreeBSD.ORG, John Hanley , Alfred Perlstein , Mike Smith Subject: Re: 64 bit counters References: Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :You can use cmpxchg8b on SMP systems (it's available on all machines that :support SMP I think) and use non-SMP versions otherwise where needed. You :would just implement the atomic_foo_64 versions this way. You would need to :use cmpxchg8b instead of addl/adcl for the acq and rel variants for SMP. : :-- : :John Baldwin <>< http://www.FreeBSD.org/~jhb/ :"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ This seems quite reasonable to me. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message