Subject: Re: kern/169: mmap'ing devices no longer work
To: Jarle Greipsland <jarle@darling.idt.unit.no>
From: Chris G. Demetriou <cgd@postgres.Berkeley.EDU>
List: netbsd-bugs
Date: 03/16/1994 15:07:10
> mmap'ing device files seems to fail no matter what type of devices involved.
> Encountered the bug while configuring XFree86-2.1 and trying to make it mmap
> in the framebuffer from /dev/mem.

you don't mmap the frame buffer from /dev/mem.
as you've noticed, /dev/mem doesn't support mmap currently, though it
may, in the (near) future.

sun-lamp# a.out
Success!

when it's compiled to use /dev/vga, which is what you're supposed to
map, if you want to use the VGA registers.

If you've got a board that uses high memory, send me mail, and i'll
see if i can't get you a patch to test to DTRT.



cgd

------------------------------------------------------------------------------