Thread (44 messages) 44 messages, 12 authors, 2009-11-01

Re: Accessing flash directly from User Space [SOLVED]

From: Michael Buesch <hidden>
Date: 2009-10-30 15:24:22

On Friday 30 October 2009 16:08:55 Alessandro Rubini wrote:
quoted
asm("eieio; sync");
Hmm...
	: : : "memory"

And, doesn't ";" start a comment in assembly? (no, not on powerpc it seems)
Yes, I think the barrier is wrong.
Please try with

#define mb()	__asm__ __volatile__("eieio\n sync\n" : : : "memory")

-- 
Greetings, Michael.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help