From owner-freebsd-arch@FreeBSD.ORG Mon Apr 13 21:02:13 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0337A106564A for ; Mon, 13 Apr 2009 21:02:13 +0000 (UTC) (envelope-from freebsd-arch@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id A7FBD8FC15 for ; Mon, 13 Apr 2009 21:02:12 +0000 (UTC) (envelope-from freebsd-arch@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LtTI7-0001Ow-Jy for freebsd-arch@freebsd.org; Mon, 13 Apr 2009 21:02:07 +0000 Received: from 93-138-97-154.adsl.net.t-com.hr ([93.138.97.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Apr 2009 21:02:07 +0000 Received: from ivoras by 93-138-97-154.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Apr 2009 21:02:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-arch@freebsd.org From: Ivan Voras Date: Mon, 13 Apr 2009 23:01:23 +0200 Lines: 44 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8D725566B4379538CB8FF905" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 93-138-97-154.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: Simple #define for cache line size X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2009 21:02:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8D725566B4379538CB8FF905 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Robert Watson wrote: > --- i386/include/param.h (revision 190941) > +++ i386/include/param.h (working copy) > @@ -74,6 +74,10 @@ > #define ALIGNBYTES _ALIGNBYTES > #define ALIGN(p) _ALIGN(p) >=20 > +#ifndef CACHE_LINE_SIZE > +#define CACHE_LINE_SIZE 64 > +#endif Wouldn't it be better to continue the cpu I486_CPU cpu I586_CPU cpu I686_CPU series of defines in kernel configuration and define alignment per CPU architecture? I guess it depends on the trends - are cache lines expected to change in the near future? :) --------------enig8D725566B4379538CB8FF905 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknjqCgACgkQldnAQVacBcigHgCdHhI3Ju25GNN/MN2ZDv0rfAmP uMoAnRZKeOyJwbKxA5cjb29kRhs0wdxW =2wxO -----END PGP SIGNATURE----- --------------enig8D725566B4379538CB8FF905--