irq.c 990 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * linux/arch/m32r/kernel/irq.c
  3. *
  4. * Copyright (c) 2003, 2004 Hitoshi Yamamoto
  5. * Copyright (c) 2004 Hirokazu Takata <takata at linux-m32r.org>
  6. */
  7. /*
  8. * linux/arch/i386/kernel/irq.c
  9. *
  10. * Copyright (C) 1992, 1998 Linus Torvalds, Ingo Molnar
  11. *
  12. * This file contains the lowest level m32r-specific interrupt
  13. * entry and irq statistics code. All the remaining irq logic is
  14. * done by the generic kernel/irq/ code and in the
  15. * m32r-specific irq controller code.
  16. */
  17. #include <linux/kernel_stat.h>
  18. #include <linux/interrupt.h>
  19. #include <linux/module.h>
  20. #include <asm/uaccess.h>
  21. /*
  22. * do_IRQ handles all normal device IRQs (the special
  23. * SMP cross-CPU interrupts have their own specific
  24. * handlers).
  25. */
  26. asmlinkage unsigned int do_IRQ(int irq, struct pt_regs *regs)
  27. {
  28. struct pt_regs *old_regs;
  29. old_regs = set_irq_regs(regs);
  30. irq_enter();
  31. #ifdef CONFIG_DEBUG_STACKOVERFLOW
  32. /* FIXME M32R */
  33. #endif
  34. generic_handle_irq(irq);
  35. irq_exit();
  36. set_irq_regs(old_regs);
  37. return 1;
  38. }