Subject: Re: mmap'ing framebuffer memory in MI drivers...
To: None <chuck@ccrc.wustl.edu>
From: Chris G. Demetriou <cgd@netbsd.org>
List: tech-kern
Date: 03/21/1999 19:16:46
chuck@ccrc.wustl.edu writes:
> >On Sat, 06 Mar 1999 09:34:28 -0800 
> > Jason Thorpe <thorpej@nas.nasa.gov> wrote:
> >Gack.
> >I blame this on the fact that I haven't finished my first cup of coffee.
> >The Mach VM code definitely called d_mmap at mmap time, to check every
> >possibly page in the mapping, to ensure that the fault handler would never
> >fail.
> 
> >UVM apparently doesn't do this.  I personally would prefer that UVM did
> >the check at mmap time.
> 
> >Chuck, is there a reason you didn't implement that?
> 
> yes, clearly i forgot to put the code in.  :)    whoops!
> 
> the thing to do is add enough args to udv_attach() so that it can do the
> check.

i just coded up a quick change to do this, and will send it to you
(and jason and a couple of others) for review as soon as i'm convinced
it does the right thing.  (laptop won't boot new kernel for
seemingly-unrelated reasons... 8-)



cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.