Subject: Re: UPAGES on sparc? [was: pkg/8728: lavaps broken on sparc (fwd)]
To: Chris G. Demetriou <cgd@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-kern
Date: 11/02/1999 17:03:36
On 2 Nov 1999, Chris G. Demetriou wrote:
> That identity should tell you all you need to know to fix the code.
> (UPAGES = USPACE / NBPG, but note that the latter's not a constant on
> the sparc and you've therefore gotta get it from the kernel. 8-)

This helped me, thanks!

The only nit is that NBPG is #defined as "nbpg" on sparc (in
<machine/param.h), and "nbpg" is only visible to the kernel - bummer. I'm
using sysconf(_SC_PAGESIZE) instead now, but maybe <machine/param.h>
should be changed WRT NBPG.


 - Hubert

-- 
NetBSD - Better for your uptime than Viagra