Subject: Re: port-mips/31915: provide centralized wired_map logic
To: None <tsutsui@netbsd.org, gnats-admin@netbsd.org,>
From: SODA Noriyuki <soda@sra.co.jp>
List: netbsd-bugs
Date: 11/01/2005 16:07:02
The following reply was made to PR port-mips/31915; it has been noted by GNATS.
From: SODA Noriyuki <soda@sra.co.jp>
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: soda@sra.co.jp, garrett_damore@tadpole.com,
gnats-bugs@NetBSD.org, port-mips@NetBSD.org
Subject: Re: port-mips/31915: provide centralized wired_map logic
Date: Wed, 2 Nov 2005 01:06:50 +0900
>>>>> 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