mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 00:12:19 +03:00
Add barrier() primitive (was present in Eb5.4), used by some currently
out-of-tree driver code.
This commit is contained in:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user