Ver código fonte

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

out-of-tree driver code.
tags/v0.9.3
Michael Brown 17 anos atrás
pai
commit
a895fd0c15
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5
    0
      src/include/compiler.h

+ 5
- 0
src/include/compiler.h Ver arquivo

@@ -311,6 +311,11 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr,
311 311
  */
312 312
 #define __shared __asm__ ( "_shared_bss" )
313 313
 
314
+/**
315
+ * Optimisation barrier
316
+ */
317
+#define barrier() __asm__ __volatile__ ( "" : : : "memory" )
318
+
314 319
 #endif /* ASSEMBLY */
315 320
 
316 321
 #endif /* COMPILER_H */

Carregando…
Cancelar
Salvar