question about writing to memory directly from user space in Linux

Eugene Surovegin ebs at ebshome.net
Thu Mar 24 04:10:46 EST 2005


On Wed, Mar 23, 2005 at 10:46:45AM +0100, Stefan Nickl wrote:
> On Wed, 2005-03-23 at 14:25 +0530, Vijay Padiyar wrote:
> > Can you suggest some kind of a "synchronization" function which I can call
> > from *user space* which will ensure that all values written to mmaped memory
> > locations from user space are actually flushed to their physical locations?
> > I think this might be a potential problem with my code.
> 
> Have a look at linux/include/asm-ppc/{io.h,system.h} and
> http://www.xml.com/ldd/chapter/book/ch08.html
> 
> The eieio instruction doesn't need supervisor rights.

eieio is a nop on 603e core.

--
Eugene



More information about the Linuxppc-embedded mailing list