]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-cris/arch-v32/irq.h
x86: PAT export resource_wc in pci sysfs
[linux-2.6-omap-h63xx.git] / include / asm-cris / arch-v32 / irq.h
index d35aa8174c2f58ed60019a831969974cec4c52c4..9e4c9fbdfddf63a905ad9e9c71bac6cbda6a8764 100644 (file)
@@ -1,13 +1,17 @@
 #ifndef _ASM_ARCH_IRQ_H
 #define _ASM_ARCH_IRQ_H
 
-#include <linux/config.h>
-#include "hwregs/intr_vect.h"
+#include <hwregs/intr_vect.h>
 
 /* Number of non-cpu interrupts. */
-#define NR_IRQS 0x50 /* Exceptions + IRQs */
-#define NR_REAL_IRQS 0x20 /* IRQs */
+#define NR_IRQS NBR_INTR_VECT /* Exceptions + IRQs */
 #define FIRST_IRQ 0x31 /* Exception number for first IRQ */
+#define NR_REAL_IRQS (NBR_INTR_VECT - FIRST_IRQ) /* IRQs */
+#if NR_REAL_IRQS > 32
+#define MACH_IRQS 64
+#else
+#define MACH_IRQS 32
+#endif
 
 #ifndef __ASSEMBLY__
 /* Global IRQ vector. */
@@ -74,7 +78,7 @@ void set_exception_vector(int n, irqvectptr addr);
  * which will acknowledge the interrupt, is run. The actual blocking is made
  * by crisv32_do_IRQ.
  */
-#define BUILD_IRQ(nr, mask)            \
+#define BUILD_IRQ(nr)                  \
 void IRQ_NAME(nr);                     \
 __asm__ (                              \
        ".text\n\t"                     \
@@ -82,7 +86,7 @@ __asm__ (                             \
        SAVE_ALL                        \
        KGDB_FIXUP                      \
        "move.d "#nr",$r10\n\t"         \
-       "move.d $sp,$r12\n\t"           \
+       "move.d $sp, $r12\n\t"          \
        "jsr crisv32_do_IRQ\n\t"        \
        "moveq 1, $r11\n\t"             \
        "jump ret_from_intr\n\t"        \
@@ -99,7 +103,7 @@ __asm__ (                            \
  * if we had BLOCK'edit here, we would not get the multiple_irq at all.
  *
  * The non-blocking here is based on the knowledge that the timer interrupt is
- * registred as a fast interrupt (SA_INTERRUPT) so that we _know_ there will not
+ * registred as a fast interrupt (IRQF_DISABLED) so that we _know_ there will not
  * be an sti() before the timer irq handler is run to acknowledge the interrupt.
  */
 #define BUILD_TIMER_IRQ(nr, mask)      \