http://git.etherboot.org
/
people
/
sha0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eff8b06
)
Add barrier() primitive (was present in Eb5.4), used by some currently
author
Michael Brown
<mcb30@etherboot.org>
Sat, 18 Aug 2007 17:04:50 +0000
(18:04 +0100)
committer
Michael Brown
<mcb30@etherboot.org>
Sat, 18 Aug 2007 17:04:50 +0000
(18:04 +0100)
out-of-tree driver code.
src/include/compiler.h
patch
|
blob
|
history
diff --git
a/src/include/compiler.h
b/src/include/compiler.h
index
b130f28
..
2151fc6
100644
(file)
--- 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 */