Subject: Re: "pmap_unwire: wiring ... didn't change!"
To: None <chuq@chuq.com>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-cobalt
Date: 03/21/2005 10:27:52
In article <20050320191346.GA27918@spathi.chuq.com>
chuq@chuq.com wrote:

> >  		pmap_enter(vm_map_pmap(phys_map), kva, pa,
> > -		    VM_PROT_READ | VM_PROT_WRITE, PMAP_WIRED);
> > +		    VM_PROT_READ | VM_PROT_WRITE,
> > +		    VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);

> we shouldn't pass VM_PROT_WRITE in the pmap_enter() flags (the last arg)
> if the user memory isn't going to be modified.  the buffer's read/write flags
> are from the perspective of the device, so the user memory is only modified
> if B_READ is set.

Ok, I think this change shouldn't affect the data corruption problem,
so I'll leave this part.
---
Izumi Tsutsui