Subject: Re: port-mips/31915: provide centralized wired_map logic
To: SODA Noriyuki <soda@sra.co.jp>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: port-mips
Date: 11/01/2005 08:23:13
SODA Noriyuki wrote:

>"Garrett D'Amore" <garrett_damore@tadpole.com> wrote:
>  
>
>> >- pagemask for wired maps should be defined in machine dependent headers,
>> >  or maybe it should be passed from callers.
>>
>> I don't like passing it from callers, because I don't want it to be 
>> variable.  (This would make the code a lot more complex to make sure it 
>> was correct and you didn't have overlapping maps, etc.)   But defining 
>> it in the machine dependent header seems reasonable.
>>    
>>
>
>If we'll provide an implementation which is reusable from various
>ports, pagemask should be passed from callers.
>ARC port needs it.
>--
>soda
>  
>
It seems to me that we need to do this.  I'd prefer to also have a 
wrapper function which doesn't require the pagemask, so that the detail 
of the MMU pagemasks can be hidden from the caller unless the caller 
needs it.

I'll tweak it slightly and send a diff shortly.

    -- Garrett