Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1e5915b173c4a729a818dbef020e166ceeaa321b
Commit:     1e5915b173c4a729a818dbef020e166ceeaa321b
Parent:     0c2efc4848984ed38753d48990f0f0c72af56ba9
Author:     Jesper Nilsson <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 15 11:59:12 2008 +0100
Committer:  Jesper Nilsson <[EMAIL PROTECTED]>
CommitDate: Fri Feb 8 11:06:24 2008 +0100

    CRIS v32: Update asm-cris/arch-v32/irq.h for ETRAX FS and ARTPEC-3
    
    - Correct include to use <>
    - Rework calculation of number of IRQs and exceptions we have.
    - Remove useless "mask" argument to BUILD_IRQ macro
---
 include/asm-cris/arch-v32/irq.h |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/include/asm-cris/arch-v32/irq.h b/include/asm-cris/arch-v32/irq.h
index bac94ee..9e4c9fb 100644
--- a/include/asm-cris/arch-v32/irq.h
+++ b/include/asm-cris/arch-v32/irq.h
@@ -1,12 +1,17 @@
 #ifndef _ASM_ARCH_IRQ_H
 #define _ASM_ARCH_IRQ_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. */
@@ -73,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"                     \
@@ -81,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"        \
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to