wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2002 |
| 3 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| 4 | * Marius Groeger <mgroeger@sysgo.de> |
| 5 | * |
| 6 | * (C) Copyright 2002 |
| 7 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| 8 | * Alex Zuepke <azu@sysgo.de> |
| 9 | * |
| 10 | * (C) Copyright 2002 |
| 11 | * Gary Jennejohn, DENX Software Engineering, <gj@denx.de> |
| 12 | * |
| 13 | * See file CREDITS for list of people who contributed to this |
| 14 | * project. |
| 15 | * |
| 16 | * This program is free software; you can redistribute it and/or |
| 17 | * modify it under the terms of the GNU General Public License as |
| 18 | * published by the Free Software Foundation; either version 2 of |
| 19 | * the License, or (at your option) any later version. |
| 20 | * |
| 21 | * This program is distributed in the hope that it will be useful, |
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 | * GNU General Public License for more details. |
| 25 | * |
| 26 | * You should have received a copy of the GNU General Public License |
| 27 | * along with this program; if not, write to the Free Software |
| 28 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 29 | * MA 02111-1307 USA |
| 30 | */ |
| 31 | |
| 32 | #include <common.h> |
wdenk | 281e00a | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 33 | #include <arm920t.h> |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 34 | |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 35 | #ifdef CONFIG_USE_IRQ |
Andreas Engel | 6d0943a | 2008-01-14 09:06:52 +0000 | [diff] [blame] | 36 | #include <asm/proc-armv/ptrace.h> |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 37 | void do_irq (struct pt_regs *pt_regs) |
| 38 | { |
Harald Welte | be19bd5 | 2007-12-19 14:19:38 +0100 | [diff] [blame] | 39 | #if defined (ARM920_IRQ_CALLBACK) |
| 40 | ARM920_IRQ_CALLBACK(); |
Harald Welte | be19bd5 | 2007-12-19 14:19:38 +0100 | [diff] [blame] | 41 | #elif defined (CONFIG_ARCH_INTEGRATOR) |
Wolfgang Denk | 74f4304 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 42 | /* ASSUMED to be a timer interrupt */ |
| 43 | /* Just clear it - count handled in */ |
| 44 | /* integratorap.c */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 45 | *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 0x0C) = 0; |
Wolfgang Denk | 74f4304 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 46 | #else |
Andreas Engel | 6d0943a | 2008-01-14 09:06:52 +0000 | [diff] [blame] | 47 | #error do_irq() not defined for this cpu type |
Wolfgang Denk | 74f4304 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 48 | #endif |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 49 | } |
Andreas Engel | 6d0943a | 2008-01-14 09:06:52 +0000 | [diff] [blame] | 50 | #endif |