From owner-freebsd-arch Sat Dec 29 16:59:24 2001 Delivered-To: freebsd-arch@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id F19C537B41A for ; Sat, 29 Dec 2001 16:59:22 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 74C7B81D03; Sat, 29 Dec 2001 18:59:17 -0600 (CST) Date: Sat, 29 Dec 2001 18:59:17 -0600 From: Alfred Perlstein To: Michal Mertl Cc: Matthew Dillon , arch@freebsd.org Subject: Re: 64 bit counters Message-ID: <20011229185917.J16101@elvis.mu.org> References: <200112292016.fBTKGWR01735@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from mime@traveller.cz on Sun, Dec 30, 2001 at 01:48:07AM +0100 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 * Michal Mertl [011229 18:49] wrote: > I doesn't seem too bad to me, but I do have a problem - I can't implement > real atomic 64 bit operations on an i386. It shouldn't be named atomic_XXX > if it isn't atomic. So that other people don't start to use it on <586 > with some variable which changes fast. > > What about making the counters not 64 bit, but the size of biggest atomic > type? Something like type u_maxatomic_t which would be 32 bit on <586 and > 64 bit otherwise. There would still be problem in determining at compile > time the size but we could choose the safe size if not somewhere defined > otherwise. > > I can make changes to my local tree but how should I send them someone for > review? Should I send them to arch? I tried to find the answer to this > question in developers's handbook but didn't find it. *laff* the concept of atomic_t was initially proposed by me over a year ago (i got the idea from linux) however it never seemed to get done. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message