]> git.droids-corp.org - aversive.git/blobdiff - include/aversive/irq_lock.h
restore first circle algo + hostsim work
[aversive.git] / include / aversive / irq_lock.h
index c8afdc408b3726c0488884ed5ab2ce32a4c75977..12a46bb0d95fc40524af0809476d0333095c29d0 100644 (file)
 
 #ifdef HOST_VERSION
 
+#include <hostsim.h>
+
 /* we must use 'flags' to avoid a warning */
-#define IRQ_UNLOCK(flags) flags=0
-#define IRQ_LOCK(flags) flags=0
-#define GLOBAL_IRQ_ARE_MASKED() (1)
+#define IRQ_UNLOCK(flags) do { flags=0; /* hostsim_lock(); */ } while(0)
+#define IRQ_LOCK(flags) do { flags=0; /* hostsim_unlock(); */ } while(0)
+#define GLOBAL_IRQ_ARE_MASKED() hostsim_islocked()
 
 #else