Date: Tue, 30 Jul 2002 15:22:46 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: hal@telefonica.net Cc: freebsd-hackers@freebsd.org Subject: Re: Accessing memory below 1 MB Message-ID: <3D4711B6.1A5D3985@mindspring.com> References: <E17ZY6E-0000Rf-00@ash.drims.net>
next in thread | previous in thread | raw e-mail | index | archive | help
hal@telefonica.net wrote: > I'm writing some graphics code (just for fun) and I need "legal" access to > the memory addresses below 1 mb. > > The thing is, I know how to access those addresses (open /dev/mem, mmap, and > that's it), but I'd like to be able to alloc some pages so that my accesses > are correct and don't make the kernel panic... > > Does anyone know how I could do that? Open the device driver for the device for which you need raw access to the memory, and mmap(2) the memory into your process address space. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D4711B6.1A5D3985>