[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to