mirror of https://github.com/ipxe/ipxe.git
Add barrier() primitive (was present in Eb5.4), used by some currently
out-of-tree driver code.pull/1/head
parent
b42c5905cb
commit
800c8b014b
|
@ -311,6 +311,11 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr,
|
||||||
*/
|
*/
|
||||||
#define __shared __asm__ ( "_shared_bss" )
|
#define __shared __asm__ ( "_shared_bss" )
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Optimisation barrier
|
||||||
|
*/
|
||||||
|
#define barrier() __asm__ __volatile__ ( "" : : : "memory" )
|
||||||
|
|
||||||
#endif /* ASSEMBLY */
|
#endif /* ASSEMBLY */
|
||||||
|
|
||||||
#endif /* COMPILER_H */
|
#endif /* COMPILER_H */
|
||||||
|
|
Loading…
Reference in New Issue