3 #define LSBIT(v) ((v) ^ ((v) & ((v) - 1)))
7 .macro clear_interrupts
24 movi a3, 0x1f /* EXCM | INTMASK */
26 assert eqi, a2, 0x10 /* only EXCM is set for level-1 interrupt */
51 movi a2, LSBIT(XCHAL_INTTYPE_MASK_SOFTWARE)
55 movi a4, ~XCHAL_INTTYPE_MASK_TIMER
73 movi a2, LSBIT(XCHAL_INTTYPE_MASK_SOFTWARE)
77 movi a4, ~XCHAL_INTTYPE_MASK_TIMER
92 movi a2, LSBIT(XCHAL_INTTYPE_MASK_SOFTWARE)
96 movi a4, ~XCHAL_INTTYPE_MASK_TIMER
108 set_vector kernel, 1f
111 movi a2, LSBIT(XCHAL_INTTYPE_MASK_SOFTWARE)
115 movi a4, ~XCHAL_INTTYPE_MASK_TIMER
126 set_vector kernel, 1f
130 movi a2, LSBIT(XCHAL_INTTYPE_MASK_SOFTWARE)
134 movi a4, ~XCHAL_INTTYPE_MASK_TIMER
151 set_vector kernel, 1f
152 set_vector level3, 2f
155 movi a2, XCHAL_INTTYPE_MASK_SOFTWARE
165 movi a3, 0x1f /* EXCM | INTMASK */
168 assert eq, a2, a3 /* EXCM and INTMASK are set
169 for high-priority interrupt */
173 set_vector level3, 3f
177 movi a2, XCHAL_INTTYPE_MASK_SOFTWARE