Update of /cvsroot/blob/blob/include/blob
In directory usw-pr-cvs1:/tmp/cvs-serv18859/include/blob
Modified Files:
util.h
Log Message:
An optimisation barrier is handy in flash functions as well, so move it to
include/blob/util.h
Index: util.h
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/util.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- util.h 2001/10/07 23:01:08 1.3
+++ util.h 2001/10/15 21:47:47 1.4
@@ -56,4 +56,10 @@
/* convert a string to an u32 value */
int strtou32(const char *str, u32 *value);
+
+/* Optimization barrier */
+/* The "volatile" is due to gcc bugs */
+#define barrier() __asm__ __volatile__("": : :"memory")
+
+
#endif
|