Subject: Re: USPACE hardwiring on cxtswitch
To: None <port-mips@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: port-mips
Date: 04/03/2000 08:19:37
On Mon, Apr 03, 2000 at 06:42:04PM +0900, Toru Nishimura wrote:
> void
> pmap_asid_alloc(pmap)
> struct pmap *pmap;
> {
> if (pmap == pmap_kernel())
> return;
> if (pmap->pm_asid == PMAP_ASID_RESERVED &&
> pmap->pm_asidgen == pmap_asid_generation)
> return;
This block should read:
if (pmap->pm_asid != PMAP_ASID_RESERVED &&
pmap->pm_asidgen == pmap_asid_generation) {
/*
* We can continue to use the same ASID we
* already have.
*/
return;
}
> if (pmap_next_asid >= pmap_max_asid) {
> MIPS_TBIAP();
> pmap_next_asid = 1;
> pmap_asid_generation += 1;
> }
> pmap->pm_asid = pmap_next_asid++;
> pmap->pm_asidgen = pmap_asid_generation;
> }
--
-- Jason R. Thorpe <thorpej@zembu.com>