Rename CPU_MEMORY_BARRIER to MEMORY_BARRIER and move it in compiler header.
[bertos.git] / cpu / irq.h
index 428ba2d76732d13b0f82cb32f20c72ae606c9a59..15609d76363d78ff7642dc78979f9200779589ed 100644 (file)
--- a/cpu/irq.h
+++ b/cpu/irq.h
        #define IRQ_ENABLE          FIXME
        #define IRQ_SAVE_DISABLE(x) FIXME
        #define IRQ_RESTORE(x)      FIXME
-       #define IRQ_ENABLED()      FIXME
+       #define IRQ_ENABLED()       FIXME
 
 #elif CPU_DSP56K
 
        #error No CPU_... defined.
 #endif
 
+#ifndef IRQ_ENTRY
+       #define IRQ_ENTRY() /* NOP */
+#endif
+
+#ifndef IRQ_EXIT
+       #define IRQ_EXIT() /* NOP */
+#endif
+
+
 /**
  * Execute \a CODE atomically with respect to interrupts.
  *