Subject: Re: Proposal: CL* macros removal.
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Chris G. Demetriou <cgd@netbsd.org>
List: tech-kern
Date: 11/21/1999 17:32:52
Jason Thorpe <thorpej@nas.nasa.gov> writes:
> On Sun, 21 Nov 1999 22:40:40 +0100 (MET)
> Anders Magnusson <ragge@ludd.luth.se> wrote:
>
> > Now you came up with something else: PAGE_SIZE as a variable instead of
> > a constant create lots of unneccessary code, especially in complex
> > expressions that otherwise could be optimized away by the compiler.
> > What is the reason to have it as a variable instead of a constant?
> > Can there ever be a benefit from this?
>
> "Because that's the way Mach VM hid MI vs. MD page size"? :-)
Uh, that's not a benefit. but there are benefits.
e.g. LKMs for multiple m68k platforms. the MD page sizes may differ.
cgd
--
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.