From owner-freebsd-arch Sat Jan 12 8:49:27 2002 Delivered-To: freebsd-arch@freebsd.org Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by hub.freebsd.org (Postfix) with ESMTP id 5222B37B402 for ; Sat, 12 Jan 2002 08:49:25 -0800 (PST) Received: (from jake@localhost) by k6.locore.ca (8.11.6/8.11.6) id g0CGtEA91523; Sat, 12 Jan 2002 11:55:14 -0500 (EST) (envelope-from jake) Date: Sat, 12 Jan 2002 11:55:13 -0500 From: Jake Burkholder To: Bruce Evans Cc: Thomas Moestl , freebsd-arch@FreeBSD.ORG Subject: Re: adding more endian conversion and bus space functions Message-ID: <20020112115513.L39321@locore.ca> References: <20020111005207.GA7246@crow.dom2ip.de> <20020111215209.V1119-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020111215209.V1119-100000@gamplex.bde.org>; from bde@zeta.org.au on Fri, Jan 11, 2002 at 10:00:45PM +1100 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 Apparently, On Fri, Jan 11, 2002 at 10:00:45PM +1100, Bruce Evans said words to the effect of; > On Fri, 11 Jan 2002, Thomas Moestl wrote: > > > I would also like to make most of the machine/endian.h files MI, as > > sys/endian.h. The only thing that the MD files would still contain are > > the definintion of BYTE_ORDER and inline implementations of some > > functions. sys/endian.h would implemented the interfaces listed in 1. > > as well as htonl and friends for both BYTE_ORDERs. > > Mike Barcroft is doing this. IIRC, it doesn't have , since > the ntohl() family is declared in according to POSIX, so > would be neither standard no useful. It is useful to if we don't have to duplicate C implementations of byte swapping functions 5 times. > I think the bus > space headers should not depend on any endianness support in other > headers except defining _[_]BYTE_ORDER. Why? I disagree. > > Bruce > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message