summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0b55933)
Otherwise at least some versions of GCC assume that no changes to
memory can take place.
The compiler will not reorder operations across an
optimization barrier. */
The compiler will not reorder operations across an
optimization barrier. */
-#define barrier() asm volatile ("")
+#define barrier() asm volatile ("" : : : "memory")
#endif /* threads/synch.h */
#endif /* threads/synch.h */