summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2007-08-18 19:04:50 +0200
committerMichael Brown2007-08-18 19:05:00 +0200
commit800c8b014b53b220144e77e43080128c3e00ef16 (patch)
tree333501b72d08520db5183e0c2f6e21388ad0f561 /src
parentVery quick and very dirty hack to get the Mellanox code building (diff)
downloadipxe-800c8b014b53b220144e77e43080128c3e00ef16.tar.gz
ipxe-800c8b014b53b220144e77e43080128c3e00ef16.tar.xz
ipxe-800c8b014b53b220144e77e43080128c3e00ef16.zip
Add barrier() primitive (was present in Eb5.4), used by some currently
out-of-tree driver code.
Diffstat (limited to 'src')
-rw-r--r--src/include/compiler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h
index b130f28fd..2151fc6ac 100644
--- a/src/include/compiler.h
+++ b/src/include/compiler.h
@@ -311,6 +311,11 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr,
*/
#define __shared __asm__ ( "_shared_bss" )
+/**
+ * Optimisation barrier
+ */
+#define barrier() __asm__ __volatile__ ( "" : : : "memory" )
+
#endif /* ASSEMBLY */
#endif /* COMPILER_H */