Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2001 12:16:32 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        John Baldwin <jhb@FreeBSD.ORG>
Cc:        Michal Mertl <mime@traveller.cz>, arch@FreeBSD.ORG, John Hanley <jh_@yahoo.com>, Alfred Perlstein <bright@mu.org>, Mike Smith <msmith@FreeBSD.ORG>
Subject:   Re: 64 bit counters
Message-ID:  <200112292016.fBTKGWR01735@apollo.backplane.com>
References:   <XFMail.011228232818.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
: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 <jhb@FreeBSD.org>  <><  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 
					<dillon@backplane.com>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112292016.fBTKGWR01735>