From owner-freebsd-arch Sun Jan 13 4:20:46 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 4035A37B417 for ; Sun, 13 Jan 2002 04:20:31 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id XAA09338; Sun, 13 Jan 2002 23:20:20 +1100 Date: Sun, 13 Jan 2002 23:21:08 +1100 (EST) From: Bruce Evans X-X-Sender: To: Jake Burkholder Cc: Thomas Moestl , Subject: Re: adding more endian conversion and bus space functions In-Reply-To: <20020112115513.L39321@locore.ca> Message-ID: <20020113230455.K709-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Sat, 12 Jan 2002, Jake Burkholder wrote: > Apparently, On Fri, Jan 11, 2002 at 10:00:45PM +1100, > Bruce Evans said words to the effect of; > > 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. The current ones are in libc. Mike moved most of the common parts to and/or . > > I think the bus > > space headers should not depend on any endianness support in other > > headers except defining _[_]BYTE_ORDER. > > Why? I disagree. Because they are specialized for bus accesses and need to support many more types of accesses than . They can easily duplicate the small part of ntohl(), etc., that they need (if they need it), like the i386 one already does for most of the i/o instructions in the i386 cpufunc.h. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message