summaryrefslogtreecommitdiffstats
path: root/src/include/compiler.h
diff options
context:
space:
mode:
authorHolger Lubitz2007-08-19 01:29:29 +0200
committerHolger Lubitz2007-08-19 01:29:29 +0200
commitc125d15798aac41c73d740cc6cc34cd06f5b111f (patch)
treec318c5fda528e1463369b1946b6c593fda0e8344 /src/include/compiler.h
parentMerge branch 'master' of git://git.etherboot.org/scm/gpxe (diff)
parentFix building on distros which use dash as the default shell. (diff)
downloadipxe-c125d15798aac41c73d740cc6cc34cd06f5b111f.tar.gz
ipxe-c125d15798aac41c73d740cc6cc34cd06f5b111f.tar.xz
ipxe-c125d15798aac41c73d740cc6cc34cd06f5b111f.zip
Merge branch 'master' of git://git.etherboot.org/scm/gpxe
Diffstat (limited to 'src/include/compiler.h')
-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 */