Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2003 14:25:31 -0800
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        "Alan L. Cox" <alc@imimic.com>
Cc:        Andrew Gallatin <gallatin@cs.duke.edu>, 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>
In-Reply-To: <3E500717.65436EAF@imimic.com>
References:  <200302161925.h1GJP49b033098@repoman.freebsd.org> <20030216143415.A41500@grasshopper.cs.duke.edu> <20030216213742.GB563@athlon.pn.xcllnt.net> <3E500717.65436EAF@imimic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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-src" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030216222531.GA869>