Subject: Re: Oddity in physio()
To: None <tech-kern@netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: tech-kern
Date: 05/29/2001 14:33:56
On Tue, 29 May 2001, Ben Harris wrote:
> error = uvm_vslock(p, bp->b_data, todo,
> (flags & B_READ) ?
> VM_PROT_READ | VM_PROT_WRITE :
> VM_PROT_READ);
>
> Am I missing something really obvious, or is that B_READ test backwards?
Turns out I was missing something really obvious (reading from a device
means writing to memory and vice versa). Oops.
--
Ben Harris <bjh21@netbsd.org>
Portmaster, NetBSD/arm26 <URL:http://www.netbsd.org/Ports/arm26/>