Thread (12 messages) 12 messages, 7 authors, 2009-06-30

Re: Inline Assembly queries

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2009-06-30 10:43:27

Possibly related (same subject, not in this thread)

On Mon, 2009-06-29 at 16:57 +0100, David Howells wrote:
kernel mailz [off-list ref] wrote:
quoted
asm("sync");
Isn't gcc free to discard this as it has no dependencies, no indicated side
effects, and isn't required to be kept?  I think this should probably be:

	asm volatile("sync");
It should also have a "memory" clobber or it's pointless since gcc would
otherwise be free to move load and stores accross that barrier.

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