mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 23:31:39 +00:00
Add barrier() primitive (was present in Eb5.4), used by some currently
out-of-tree driver code.
This commit is contained in:
parent
b42c5905cb
commit
800c8b014b
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user