Subject: Re: "pmap_unwire: wiring ... didn't change!"
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Chuck Silvers <chuq@chuq.com>
List: port-mips
Date: 09/02/2005 09:34:32
On Sat, Sep 03, 2005 at 01:12:56AM +0900, Izumi Tsutsui wrote:
> > do we need to save and restore the special 4100 pagemask any more than
> > we need to save and restore the normal pagemask?  if all the non-locked
> > entries have it, then wouldn't it be the same?  or does the hardware
> > automatically zero the pagemask sometimes?
> 
> If WinCE (or hpcboot) sets pagemask to 0x1800 it should be preserved,

why should it be preserved?  we don't call back into wince or hpcboot code
after the kernel starts, do we?

my point was, in any running kernel the pagemask will always be the same,
0x1800 for 4100s and 0 for everything else.  we shouldn't need to
save and restore the pagemask in more places if it's always 0x1800 than
if it's always 0, should we?


> but as I wrote before the current kernel doesn't initialize the pagemask.
> The previous MachTLBUpdate() initialized it to 0x1800 (default_pg_mask)
> on creating a new entry, but I don't know it was actually worth.
> 
> > what kind of box has a 4100 CPU anyway?
> 
> hpcmips with VR41xx CPU, including all NEC ones :-)

oh... I thought you meant literally "4100" and not "41xx".

-Chuck