]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - cpu/bf533/traps.c
Merge: Add support for AMCC 440SPe CPU based eval board (Yucca).
[karo-tx-uboot.git] / cpu / bf533 / traps.c
1 /*
2  * U-boot - traps.c Routines related to interrupts and exceptions
3  *
4  * Copyright (c) 2005 blackfin.uclinux.org
5  *
6  * This file is based on
7  * No original Copyright holder listed,
8  * Probabily original (C) Roman Zippel (assigned DJD, 1999)
9  *
10  * Copyright 2003 Metrowerks - for Blackfin
11  * Copyright 2000-2001 Lineo, Inc. D. Jeff Dionne <jeff@lineo.ca>
12  * Copyright 1999-2000 D. Jeff Dionne, <jeff@uclinux.org>
13  *
14  * (C) Copyright 2000-2004
15  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
16  *
17  * See file CREDITS for list of people who contributed to this
18  * project.
19  *
20  * This program is free software; you can redistribute it and/or
21  * modify it under the terms of the GNU General Public License as
22  * published by the Free Software Foundation; either version 2 of
23  * the License, or (at your option) any later version.
24  *
25  * This program is distributed in the hope that it will be useful,
26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28  * GNU General Public License for more details.
29  *
30  * You should have received a copy of the GNU General Public License
31  * along with this program; if not, write to the Free Software
32  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
33  * MA 02111-1307 USA
34  */
35
36 #include <common.h>
37 #include <linux/types.h>
38 #include <asm/errno.h>
39 #include <asm/irq.h>
40 #include <asm/system.h>
41 #include <asm/traps.h>
42 #include <asm/page.h>
43 #include <asm/machdep.h>
44 #include "cpu.h"
45
46 void init_IRQ(void)
47 {
48         blackfin_init_IRQ();
49         return;
50 }
51
52 void process_int(unsigned long vec, struct pt_regs *fp)
53 {
54         return;
55 }
56
57 void dump(struct pt_regs *fp)
58 {
59         printf("PC: %08lx\n", fp->pc);
60         printf("SEQSTAT: %08lx    SP: %08lx\n", (long) fp->seqstat,
61                 (long) fp);
62         printf("R0: %08lx    R1: %08lx    R2: %08lx    R3: %08lx\n",
63                 fp->r0, fp->r1, fp->r2, fp->r3);
64         printf("R4: %08lx    R5: %08lx    R6: %08lx    R7: %08lx\n",
65                 fp->r4, fp->r5, fp->r6, fp->r7);
66         printf("P0: %08lx    P1: %08lx    P2: %08lx    P3: %08lx\n",
67                 fp->p0, fp->p1, fp->p2, fp->p3);
68         printf("P4: %08lx    P5: %08lx    FP: %08lx\n", fp->p4, fp->p5,
69                 fp->fp);
70         printf("A0.w: %08lx    A0.x: %08lx    A1.w: %08lx    A1.x: %08lx\n",
71                 fp->a0w, fp->a0x, fp->a1w, fp->a1x);
72         printf("\n");
73 }