Removed Common

Change-Id: I01ea8f07220375c2ad9bc0092281d4f27c642303
diff --git a/aos/util/compiler_memory_barrier.h b/aos/util/compiler_memory_barrier.h
new file mode 100644
index 0000000..33da511
--- /dev/null
+++ b/aos/util/compiler_memory_barrier.h
@@ -0,0 +1,11 @@
+#ifndef AOS_UTIL_COMPILER_MEMORY_BARRIER_H_
+#define AOS_UTIL_COMPILER_MEMORY_BARRIER_H_
+
+// Prevents the compiler from reordering memory operations around this.
+// Using this function makes it clearer what you're doing and easier to be
+// portable.
+static inline void aos_compiler_memory_barrier(void) {
+  __asm__ __volatile__("" ::: "memory");
+}
+
+#endif  // AOS_UTIL_COMPILER_MEMORY_BARRIER_H_