X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Farch%2Fblackfin%2Finclude%2Fasm%2Firq.h;fp=kernel%2Farch%2Fblackfin%2Finclude%2Fasm%2Firq.h;h=89de539ed0100624ead2e5ea6d7f9790eed11cf2;hb=9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00;hp=0000000000000000000000000000000000000000;hpb=98260f3884f4a202f9ca5eabed40b1354c489b29;p=kvmfornfv.git diff --git a/kernel/arch/blackfin/include/asm/irq.h b/kernel/arch/blackfin/include/asm/irq.h new file mode 100644 index 000000000..89de539ed --- /dev/null +++ b/kernel/arch/blackfin/include/asm/irq.h @@ -0,0 +1,41 @@ +/* + * Copyright 2004-2009 Analog Devices Inc. + * 2003 HuTao + * 2002 Arcturus Networks Inc. (www.arcturusnetworks.com + * Ted Ma + * + * Licensed under the GPL-2 + */ + +#ifndef _BFIN_IRQ_H_ +#define _BFIN_IRQ_H_ + +#include + +/* IRQs that may be used by external irq_chip controllers */ +#define NR_SPARE_IRQS 32 + +#include + +/* SYS_IRQS and NR_IRQS are defined in */ +#include + +#if ANOMALY_05000244 && defined(CONFIG_BFIN_ICACHE) +# define NOP_PAD_ANOMALY_05000244 "nop; nop;" +#else +# define NOP_PAD_ANOMALY_05000244 +#endif + +#define idle_with_irq_disabled() \ + __asm__ __volatile__( \ + NOP_PAD_ANOMALY_05000244 \ + ".align 8;" \ + "sti %0;" \ + "idle;" \ + : \ + : "d" (bfin_irq_flags) \ + ) + +#include + +#endif /* _BFIN_IRQ_H_ */