Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 1997 11:09:38 -0700
From:      David Greenman <dg@root.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        BRUN Philippe <philippe.brun@eurocontrol.fr>, FREEBSD <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: Arinc device driver kvtop problem 
Message-ID:  <199709101809.LAA10013@implode.root.com>
In-Reply-To: Your message of "Thu, 11 Sep 1997 02:53:13 %2B1000." <199709101653.CAA04895@word.smith.net.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
>I remeber correctly).  If you are running -current, all that remains is 
>to arrange (when your driver starts) for the nominated address range to 
>be reserved for your driver.
>
>You can probably arrange this using contigmalloc, eg. :
>
>contigmalloc(0x10000, M_DEVBUF, M_NOWAIT, 0xf00000, 0xf10000, 0, 0)
>
>(see sys/vm/vm_page.c)  There may be better ways to do this.

   contigmalloc() is the wrong tool for this job - it only works for normal
memory. What you want to use is pmap_mapdev() - see i386/i386/pmap.c.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709101809.LAA10013>