From owner-freebsd-arch Tue Feb 19 16:24:31 2002 Delivered-To: freebsd-arch@freebsd.org Received: from espresso.q9media.com (espresso.q9media.com [216.254.138.122]) by hub.freebsd.org (Postfix) with ESMTP id CC3C537B402 for ; Tue, 19 Feb 2002 16:24:25 -0800 (PST) Received: (from mike@localhost) by espresso.q9media.com (8.11.6/8.11.6) id g1K0Jva79346; Tue, 19 Feb 2002 19:19:57 -0500 (EST) (envelope-from mike) Date: Tue, 19 Feb 2002 19:19:57 -0500 From: Mike Barcroft To: Bruce Evans Cc: Jake Burkholder , Thomas Moestl , freebsd-arch@FreeBSD.ORG Subject: Re: adding more endian conversion and bus space functions Message-ID: <20020219191957.H5526@espresso.q9media.com> References: <20020112115513.L39321@locore.ca> <20020113230455.K709-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020113230455.K709-100000@gamplex.bde.org>; from bde@zeta.org.au on Sun, Jan 13, 2002 at 11:21:08PM +1100 Organization: The FreeBSD Project 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 [Sorry this is a late reply.] Bruce Evans writes: > On Sat, 12 Jan 2002, Jake Burkholder wrote: > > > 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. If I understand the problem correctly, these endian functions are needed in several places, so it doesn't make sense to localize it to one subsystem. Atleast one place is already using some of these functions (). I also understand FFS will require these new functions in order to support non-native endian FSes. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message