2 * U-boot - traps.c Routines related to interrupts and exceptions
4 * Copyright (c) 2005 blackfin.uclinux.org
6 * This file is based on
7 * No original Copyright holder listed,
8 * Probabily original (C) Roman Zippel (assigned DJD, 1999)
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>
14 * (C) Copyright 2000-2004
15 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
17 * See file CREDITS for list of people who contributed to this
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.
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.
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,
37 #include <linux/types.h>
38 #include <asm/errno.h>
40 #include <asm/system.h>
41 #include <asm/traps.h>
43 #include <asm/machdep.h>
52 void process_int(unsigned long vec
, struct pt_regs
*fp
)
57 void dump(struct pt_regs
*fp
)
59 printf("PC: %08lx\n", fp
->pc
);
60 printf("SEQSTAT: %08lx SP: %08lx\n", (long) fp
->seqstat
,
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
,
70 printf("A0.w: %08lx A0.x: %08lx A1.w: %08lx A1.x: %08lx\n",
71 fp
->a0w
, fp
->a0x
, fp
->a1w
, fp
->a1x
);