2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-15 07:41:45 +00:00

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 b42c5905cb
commit 800c8b014b

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