Go to the documentation of this file. 1 #ifndef _ASM_ARCH_IRQ_H
2 #define _ASM_ARCH_IRQ_H
4 #include <hwregs/intr_vect.h>
7 #define NR_IRQS NBR_INTR_VECT
9 #define NR_REAL_IRQS (NBR_INTR_VECT - FIRST_IRQ)
34 "move $erp,[$sp]\n\t" \
36 "move $srp,[$sp]\n\t" \
38 "move $ccs,[$sp]\n\t" \
40 "move $spc,[$sp]\n\t" \
42 "move $mof,[$sp]\n\t" \
44 "move $srs,[$sp]\n\t" \
46 "move.d $acr,[$sp]\n\t" \
48 "movem $r13,[$sp]\n\t" \
53 #define STR(x) STR2(x)
55 #define IRQ_NAME2(nr) nr##_interrupt(void)
56 #define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr)
64 #ifdef CONFIG_ETRAX_KGDB
66 "move $ccs, $r10\n\t" \
67 "or.d (1<<9), $r10\n\t" \
81 #define BUILD_IRQ(nr) \
85 "IRQ" #nr "_interrupt:\n\t" \
88 "move.d "#nr",$r10\n\t" \
89 "move.d $sp, $r12\n\t" \
90 "jsr crisv32_do_IRQ\n\t" \
92 "jump ret_from_intr\n\t" \
109 #define BUILD_TIMER_IRQ(nr, mask) \
113 "IRQ" #nr "_interrupt:\n\t" \
116 "move.d "#nr",$r10\n\t" \
117 "move.d $sp,$r12\n\t" \
118 "jsr crisv32_do_IRQ\n\t" \
120 "jump ret_from_intr\n\t" \