From owner-freebsd-arch Sat Mar 16 12:22:57 2002 Delivered-To: freebsd-arch@freebsd.org Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by hub.freebsd.org (Postfix) with ESMTP id 8BC5237B425 for ; Sat, 16 Mar 2002 12:22:55 -0800 (PST) Received: from pool0236.cvx21-bradley.dialup.earthlink.net ([209.179.192.236] helo=mindspring.com) by avocet.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16mKhN-0003GM-00; Sat, 16 Mar 2002 12:22:41 -0800 Message-ID: <3C93A97E.97362250@mindspring.com> Date: Sat, 16 Mar 2002 12:22:22 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Bruce Evans Cc: "M. Warner Losh" , des@ofug.org, arch@FreeBSD.ORG Subject: Re: HEADS UP: caddr_t sweep References: <20020316225716.I28305-100000@gamplex.bde.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Bruce Evans wrote: > On Fri, 15 Mar 2002, M. Warner Losh wrote: > > In message: > > Dag-Erling Smorgrav writes: > > : I'm preparing a sweep that will remove incorrect caddr_t casts in > > : copy{in,out,str,instr}(), bcopy() and bzero() calls in the kernel. > > ... > > > > i'd like to take a look at this patch before you commit it please. > > There are many driver uses of bcopy that are non-obvious and likely > > should be bus_space_read instead... > > Maybe limit it to copy* and other userland interfaces (mmap?) then. > There are also some bcopies which should be struct assignments. This issue was mentioned at the BSDCon Developer's Summit as the main issue in the limitation of Alpha systems to 2G of physical RAM. I think it's important to address this issue. Right now, there is a similar limitation on Intel at 4G, for 32 bit PCI cards, where the bus_space code is not being used to keep the transfers in the low 4G of memory. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message