david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Add barrier() primitive (was present in Eb5.4), used by some currently

out-of-tree driver code.
This commit is contained in:
Michael Brown 2007-08-18 18:04:50 +01:00
parent eff8b06eff
commit a895fd0c15
1 changed files with 5 additions and 0 deletions

View File

@ -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 */