sead_int.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Carsten Langgaard, carstenl@mips.com
  3. * Copyright (C) 2002 MIPS Technologies, Inc. All rights reserved.
  4. * Copyright (C) 2003 Ralf Baechle (ralf@linux-mips.org)
  5. * Copyright (C) 2004 Maciej W. Rozycki
  6. *
  7. * This program is free software; you can distribute it and/or modify it
  8. * under the terms of the GNU General Public License (Version 2) as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope it will be useful, but WITHOUT
  12. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  14. * for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program; if not, write to the Free Software Foundation, Inc.,
  18. * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
  19. *
  20. * Routines for generic manipulation of the interrupts found on the MIPS
  21. * Sead board.
  22. */
  23. #include <linux/init.h>
  24. #include <linux/irq.h>
  25. #include <asm/irq_cpu.h>
  26. #include <asm/system.h>
  27. #include <asm/mips-boards/seadint.h>
  28. extern asmlinkage void mipsIRQ(void);
  29. asmlinkage void sead_hw0_irqdispatch(struct pt_regs *regs)
  30. {
  31. do_IRQ(SEADINT_UART0, regs);
  32. }
  33. asmlinkage void sead_hw1_irqdispatch(struct pt_regs *regs)
  34. {
  35. do_IRQ(SEADINT_UART1, regs);
  36. }
  37. void __init arch_init_irq(void)
  38. {
  39. mips_cpu_irq_init(0);
  40. /* Now safe to set the exception vector. */
  41. set_except_vector(0, mipsIRQ);
  42. }