Explorar el Código

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

out-of-tree driver code.
tags/v0.9.3
Michael Brown hace 17 años
padre
commit
a895fd0c15
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      src/include/compiler.h

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

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

Loading…
Cancelar
Guardar