Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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) |
Maciej W. Rozycki | ea7c394 | 2005-02-04 01:34:52 +0000 | [diff] [blame] | 5 | * Copyright (C) 2004 Maciej W. Rozycki |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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> |
Maciej W. Rozycki | ea7c394 | 2005-02-04 01:34:52 +0000 | [diff] [blame] | 25 | |
| 26 | #include <asm/irq_cpu.h> |
| 27 | #include <asm/system.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
| 29 | #include <asm/mips-boards/seadint.h> |
| 30 | |
| 31 | extern asmlinkage void mipsIRQ(void); |
| 32 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | void __init arch_init_irq(void) |
| 34 | { |
Ralf Baechle | 1a6ea3e | 2005-11-15 16:10:01 +0000 | [diff] [blame] | 35 | mips_cpu_irq_init(MIPSCPU_INT_BASE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | |
| 37 | /* Now safe to set the exception vector. */ |
| 38 | set_except_vector(0, mipsIRQ); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | } |