From owner-freebsd-hackers Wed Sep 10 11:07:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA16750 for hackers-outgoing; Wed, 10 Sep 1997 11:07:17 -0700 (PDT) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA16743 for ; Wed, 10 Sep 1997 11:07:14 -0700 (PDT) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id LAA10013; Wed, 10 Sep 1997 11:09:38 -0700 (PDT) Message-Id: <199709101809.LAA10013@implode.root.com> To: Mike Smith cc: BRUN Philippe , FREEBSD Subject: Re: Arinc device driver kvtop problem In-reply-to: Your message of "Thu, 11 Sep 1997 02:53:13 +1000." <199709101653.CAA04895@word.smith.net.au> From: David Greenman Reply-To: dg@root.com Date: Wed, 10 Sep 1997 11:09:38 -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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