On Fri, Jul 06, 2001 at 05:39:52PM +0100, Russell King - ARM Linux wrote:
> On Fri, Jul 06, 2001 at 10:29:03AM -0600, John C. Bahr wrote:
> > Is there a way to ask for a specific portion of memory to be set up as
> > shared memory? I'm sure the issue becomes more complicated with the MMU.
> >
> > The reason I'm asking is I have some batery-backed up SRAM that I'd like to
> > set up as shared memory so multiple processes can access it.
>
> If you don't tell Linux about it (as far as the main memory goes) then Linux
> won't use it. You can then use ioremap() with a physical address to get it
> into the MMU tables, and use {read,write}[bwl] to access it.
The easiest way to do this is to make an MTD driver for it and mmap()
the MTD device into your address space.
> (sa1100 folk note: We ought to be doing this for the flash as well...)
I think we already have this in the MTD drivers.
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [EMAIL PROTECTED]
WWW: http://www-ict.its.tudelft.nl/~erik/
_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.