move ACCESS_SAFE() macro into bertos/cfg/compiler.h
[bertos.git] / bertos / mware / event.h
index e9f9e4a2269d01b36ec665ec85e21cc8589ff99f..0a87af1abe170dbf58a80156477c0b80135ec715 100644 (file)
@@ -188,15 +188,6 @@ INLINE Event event_createSignal(struct Process *proc, sigbit_t bit)
 
 #endif
 
-/**
- * Prevent the compiler from optimizing access to the variable \a x, enforcing
- * a refetch from memory. This also forbid from reordering successing instances
- * of ACCESS_SAFE().
- *
- * TODO: move this to cfg/compiler.h
- */
-#define ACCESS_SAFE(x) (*(volatile typeof(x) *)&(x))
-
 #if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS
 /** Initialize the generic sleepable event \a e */
 #define event_initGeneric(e) \