From owner-freebsd-arch Thu Jan 10 23:49: 9 2002 Delivered-To: freebsd-arch@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.19.129.142]) by hub.freebsd.org (Postfix) with ESMTP id 3A85B37B419 for ; Thu, 10 Jan 2002 23:49:04 -0800 (PST) Received: by relay.butya.kz (Postfix, from userid 1000) id 7691828B97; Fri, 11 Jan 2002 13:48:53 +0600 (ALMT) Received: from localhost (localhost [127.0.0.1]) by relay.butya.kz (Postfix) with ESMTP id 6565928B93; Fri, 11 Jan 2002 13:48:53 +0600 (ALMT) Date: Fri, 11 Jan 2002 13:48:53 +0600 (ALMT) From: Boris Popov To: Thomas Moestl Cc: freebsd-arch@FreeBSD.org Subject: Re: adding more endian conversion and bus space functions In-Reply-To: <20020111005207.GA7246@crow.dom2ip.de> Message-ID: 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 Fri, 11 Jan 2002, Thomas Moestl wrote: > I'd like to propose some additions to the kernel endian conversion and > bus space functions to aid the sparc64 port, taken from NetBSD: [skip] > 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. Good idea. Please also take a look at sys/mchain.h file where such macros currently misplaced (and misnamed) to make sure that the existing code will use new inlines/macros. netsmb and smbfs code also depends on the above file. -- Boris Popov http://rbp.euro.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message