Subject: Re: port-mips/31915: provide centralized wired_map logic
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: SODA Noriyuki <soda@sra.co.jp>
List: port-mips
Date: 11/02/2005 01:06:50
>>>>> On Wed, 2 Nov 2005 01:01:49 +0900,
      Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> said:

>> Or, perhaps make the interface in port-mips/31915 have page size as
>> its argument, and make arc/wired_map.c use the MI mips interface?

> As Garrett said, it might cause some complicated situation.

> What can we do if a requrested VA region is already
> wired mapped with smaller pagesize than the request
> and the tailing region is already mapped to another PA
> with TLB_LO1?

It's OK that upper layer routine like arc/wired_map.c:arc_map_wired()
or port-mips/31915:mips3_wire_down() use fixed page size.
But primitive routine like arc/wired_map.c:arc_enter_wired() or
port-mips/31915:mips3_wire_down_page() should have page size
and (pa0 + pa1) as its arguments.
--
soda