Thread (14 messages) flat view 14 messages, 4 authors, 2000-06-22

Re: Can't mmap the top 1MB of /dev/mem?

From: Dan Malek <hidden>
Date: 2000-06-22 18:54:29

Pavel Roskin wrote:
I know that program. FLASH_MEM_SIZE is a small number used only in the
first mmap() to determine the size of the flash.
Yes, but then it re-maps based upon the flash devices found....but I'll
bet I don't map the top boot sector.......
..... If you make it so big
that (int)(FLASH_MEM_ADDR+FLASH_MEM_SIZE)==0 then mmap() fails.
So, this should be a pretty obvious boundary condition bug in
drivers/char/mem.c or one of the Linux MM functions.  You want to
learn about MMUs?  Go check some of those files for inspiration......


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help