Subject: Re: Build failure for pmap(1)
To: None <bsh@grotto.jp>
From: Robert Swindells <rjs@fdy2.demon.co.uk>
List: port-arm
Date: 09/12/2002 22:52:23
Hiroyuki Bessho wrote:
>"Chris Gilbert" <chris@dokein.co.uk> writes:
>> I stumbled on this a while back with lsof I think.  I think it's tied
>> closely enough to the kernel that it could define _KERNEL (I should really
>> have a look at what it does at some point)
>>

>    Why do we need to protect things with #ifdef _KERNEL in
><machine/vmparam.h>?  Other ports doesn't have such protection.

>    Usual userland programs don't include vmparam.h.  So, just
>removing #ifdef _KERNEL from <machine/vmparam.h> seems a good fix to
>me.

The bit I can't work out is whether the pmap program uses anything
from struct uvm.

The size of this structure can be different between ports that share
the same MACHINE_ARCH if VM_NFREELIST differs.

Robert Swindells