From owner-freebsd-hackers Wed Oct 10 1:21:10 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 7053537B40A for ; Wed, 10 Oct 2001 01:21:07 -0700 (PDT) Received: from mindspring.com (dialup-209.247.137.241.Dial1.SanJose1.Level3.net [209.247.137.241]) by albatross.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id BAA09587; Wed, 10 Oct 2001 01:21:04 -0700 (PDT) Message-ID: <3BC40523.E7C4D13C@mindspring.com> Date: Wed, 10 Oct 2001 01:21:55 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Eugene M. Kim" Cc: Jonathan Lemon , hackers@freebsd.org Subject: Re: VM question (I hate Intel 810/815 chipsets...) References: <200110100037.f9A0bfv40852@prism.flugsvamp.com> <20011009180841.A26019@alicia.nttmcl.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Eugene M. Kim" wrote: > > Thank you for the reply. > > I also found contigmalloc() shortly after I posted the original question > (what an embarrassment ;-p), then met another restriction: Because these > memory regions are to be accessed by a userland process (X server), they > have to be somehow mapped into the user space. So far it seems I would > have to do something similar to vm_mmap(), but I'm not sure if this is a > right direction. Do you have any suggestions? Write a device driver, and mmap() the device after opening it. Alternately, consider doing the machdep.c trick, and setting the PG_U bit. One bad consequence of this, however, is that any runaway user process would be able to trash the memory, so a device mmap() approach is really a much better idea. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message