From owner-cvs-all Sun Feb 16 14:25:43 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70F5937B401; Sun, 16 Feb 2003 14:25:40 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D44343F85; Sun, 16 Feb 2003 14:25:39 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by ns1.xcllnt.net (8.12.6/8.12.6) with ESMTP id h1GMPW1o073853; Sun, 16 Feb 2003 14:25:32 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.7/8.12.7) with ESMTP id h1GMPWku000917; Sun, 16 Feb 2003 14:25:32 -0800 (PST) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.7/8.12.7/Submit) id h1GMPV8w000916; Sun, 16 Feb 2003 14:25:31 -0800 (PST) Date: Sun, 16 Feb 2003 14:25:31 -0800 From: Marcel Moolenaar To: "Alan L. Cox" Cc: Andrew Gallatin , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/alpha/alpha machdep.c Message-ID: <20030216222531.GA869@athlon.pn.xcllnt.net> References: <200302161925.h1GJP49b033098@repoman.freebsd.org> <20030216143415.A41500@grasshopper.cs.duke.edu> <20030216213742.GB563@athlon.pn.xcllnt.net> <3E500717.65436EAF@imimic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E500717.65436EAF@imimic.com> User-Agent: Mutt/1.5.3i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 16, 2003 at 03:48:07PM -0600, Alan L. Cox wrote: > Marcel Moolenaar wrote: > > > > On Sun, Feb 16, 2003 at 02:34:15PM -0500, Andrew Gallatin wrote: > > > Andrew Gallatin [gallatin@FreeBSD.org] wrote: > > > > gallatin 2003/02/16 11:25:04 PST > > > > > > > > Modified files: > > > > sys/alpha/alpha machdep.c > > > > Log: > > > > zero the end of the memory cluster we're disposing of. Otherwise teh > > > > vm page startup code finds a 20GB cluster on this wacky alphaserver I'm > > > > working on.. > > > > > > Anybody know why phys avail is so cryptic? Does it come directly from > > > AT&T and predate C support structures? > > > > It's probably one of those quick-n-dirty hacks to get something > > going. It's polluting new architectures as well, because it's in > > MI code. I don't think there's a reason why it must absolutely > > be the way it is... > > > > It came with i386/i386/machdep.c revision 1.25. I thought it would be something like that. It's a shame it hasn't been fixed in all those years, especially when alpha entered the scene. One thing came to mind and that's on architectures where there's a memory map, we could dispense of it and simply use methods to access the memory map (ia64 and sparc64). So, the first step would be to abstract the access to phys_avail and then make it a MD structure. I didn't want to take this on just yet as there are already too many things to be done. If somebody doesn't beat me to it, I'll probably do it in a couple of years :-) -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message