X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=include%2Faversive%2Firq_lock.h;h=055c2479125b457ffdff147616356ed45a96c0d7;hp=12a46bb0d95fc40524af0809476d0333095c29d0;hb=8d1a172c863bc0712e8d92f3e808e85a4e579e10;hpb=9fdc9cd2902ed50ebefe0b3c9309d4f173d65e2a diff --git a/include/aversive/irq_lock.h b/include/aversive/irq_lock.h index 12a46bb..055c247 100644 --- a/include/aversive/irq_lock.h +++ b/include/aversive/irq_lock.h @@ -42,12 +42,18 @@ #ifdef HOST_VERSION +#ifdef CONFIG_MODULE_HOSTSIM #include /* we must use 'flags' to avoid a warning */ #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 +#define IRQ_UNLOCK(flags) do { flags=0; } while(0) +#define IRQ_LOCK(flags) do { flags=0; } while(0) +#define GLOBAL_IRQ_ARE_MASKED() (0) +#endif /* CONFIG_MODULE_HOSTSIM */ #else