diff options
| author | Michael Brown | 2007-08-18 19:04:50 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-08-18 19:05:00 +0200 |
| commit | 800c8b014b53b220144e77e43080128c3e00ef16 (patch) | |
| tree | 333501b72d08520db5183e0c2f6e21388ad0f561 | |
| parent | Very quick and very dirty hack to get the Mellanox code building (diff) | |
| download | ipxe-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.
| -rw-r--r-- | src/include/compiler.h | 5 |
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 */ |
