2
0

spurious_irq.c 402 B

123456789101112131415161718
  1. #include "compiler.h"
  2. #include "common.h"
  3. #include "picorv32.h"
  4. #include "irq.h"
  5. /* Spurious interrupt; just mask it */
  6. register irqmask_t irq_vector_mask asm(IRQ_VECTOR_MASK_REGISTER);
  7. IRQHANDLER(spurious,0)
  8. {
  9. mask_irq(vector);
  10. }
  11. #define IRQENTRY(name,irqbase,irqn,irqcount) \
  12. IRQHANDLER_DECL(name,irqn) \
  13. __attribute__((weak,alias("irqhandler_spurious_0")));
  14. #include "irqtable.h"