mmap : please help !
Fillod Stephane
stephane.fillod at thomson.net
Thu Apr 14 02:33:59 EST 2005
Sophie CARAYOL wrote:
[...]
> What is the good manner to read or write in the physical memory?
Please have a look at Denx's FAQ for accessing memory bus:
http://www.denx.de/twiki/bin/view/PPCEmbedded/DeviceDrivers#Section_Acce
ssingPeripheralsFromUserSpace
or shorter: http://tinyurl.com/6c7th
Depending on the O_SYNC flag passed to open, the mmap'ed memory will be
accessed through non guarded cache or not. See linux/drivers/char/mem.c.
The ppc instruction "eieio" deals with I/O ordering.
Kenavo
--
Stephane
PS: be careful not sending twice the same mail to the list
More information about the Linuxppc-embedded
mailing list