From owner-cvs-src@FreeBSD.ORG Mon Oct 18 19:00:47 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 664) id 6FC3D16A4CF; Mon, 18 Oct 2004 19:00:47 +0000 (GMT) Date: Mon, 18 Oct 2004 19:00:47 +0000 From: David O'Brien To: Ruslan Ermilov Message-ID: <20041018190044.GA89411@hub.freebsd.org> References: <200410181719.i9IHJa9l097436@repoman.freebsd.org> <20041018173516.GB89681@ip.net.ua> <20041018174511.GA6079@dragon.nuxi.com> <20041018180319.GD89681@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041018180319.GD89681@ip.net.ua> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.10-STABLE Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/i386/net htonl.S ntohl.S X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 19:00:47 -0000 On Mon, Oct 18, 2004 at 09:03:20PM +0300, Ruslan Ermilov wrote: > On Mon, Oct 18, 2004 at 10:45:11AM -0700, David O'Brien wrote: > > On Mon, Oct 18, 2004 at 08:35:16PM +0300, Ruslan Ermilov wrote: > > > On Mon, Oct 18, 2004 at 05:19:36PM +0000, David E. O'Brien wrote: > > > > obrien 2004-10-18 17:19:36 UTC > > > > FreeBSD src repository > > > > Modified files: > > > > lib/libc/i386/net htonl.S ntohl.S > > > > Log: > > > > Sync with sys/i386/include/endian.h: use the single instruction 'bswap'. .. > > I know. Give me some other symbol then we can publish that one should > > add to /etc/make.conf CFLAGS to try to build a userland for an I386. > > "I386_CPU" looks as good a spelling as any and I didn't see any need to > > spell it differently than in the kernel. > > > You can check for the CPUTYPE="i386" for ${MACHINE_ARCH} == "i386" > in libc/Makefile, and set I386_CPU in CFLAGS in this case. Taking Revision Changes Path 1.10 +4 -0 src/lib/libc/i386/net/htonl.S 1.10 +4 -0 src/lib/libc/i386/net/ntohl.S specifically what patch do you suggest that we used in cases like this rather than #ifdef I386_CPU". And how to use it? That is one in which someone checks out the source and wants to build a userland that is usable on an I386 machine. -- -- David (obrien@FreeBSD.org)