From owner-freebsd-current Tue Jan 16 13: 0:48 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id 6F49D37B400; Tue, 16 Jan 2001 13:00:28 -0800 (PST) Received: from victoria-074.budapest.interware.hu ([195.70.63.74] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 14IdDI-0000J7-00; Tue, 16 Jan 2001 22:00:21 +0100 Message-ID: <3A64AA23.30035A1C@elischer.org> Date: Tue, 16 Jan 2001 12:08:03 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Bruce Evans Cc: John Baldwin , Peter Jeremy , current@FreeBSD.ORG, Mark Murray Subject: Re: Atomic breakage? References: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bruce Evans wrote: > > On Mon, 15 Jan 2001, John Baldwin wrote: > > > On 14-Jan-01 Peter Jeremy wrote: > > > And for BDE's benefit - atomic.h is broken for IA32's with 64-bit > > > longs. (I believe that can be fixed for Pentiums and above using > > > CMPXCHG8B, but I can't test the code). > > > > The i386 with 64-bit longs doesn't boot from what I hear. Also, long in > > machine/types.h is 32-bits long. I don't think we need to bother with 64-bit > > longs. Adding 64-bit atomic ops will be expensive on <= 486. > > It has booted fine for several years. I last built it on 8 Oct 2000. I > haven't committed all the bits so it probably doesn't even build in -current. > > Erm, long isn't in machine/types.h. In , only the long limits in > and a few bogus typedefs depend on the size of a long. > > I bother with 64-bit longs whether I need to or not :-). They get used on > i386's mainly in old code and interfaces that don't use typedefs. > Hopefully 64-bit scalars will never need to be accessed atomically. Too late. Many statistics in interfaces (i.e. bytes transmitted) are already 64 bit words. > > Bruce > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ from Perth, presently in: Budapest v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message