traps.c 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. #include <common.h>
  36. #include <linux/types.h>
  37. #include <asm/errno.h>
  38. #include <asm/irq.h>
  39. #include <asm/system.h>
  40. #include <asm/traps.h>
  41. #include <asm/page.h>
  42. #include <asm/machdep.h>
  43. #include "cpu.h"
  44. void init_IRQ(void)
  45. {
  46. blackfin_init_IRQ();
  47. return;
  48. }
  49. void process_int(unsigned long vec, struct pt_regs *fp)
  50. {
  51. return;
  52. }
  53. void dump(struct pt_regs *fp)
  54. {
  55. printf("PC: %08lx\n", fp->pc);
  56. printf("SEQSTAT: %08lx SP: %08lx\n", (long) fp->seqstat,
  57. (long) fp);
  58. printf("R0: %08lx R1: %08lx R2: %08lx R3: %08lx\n",
  59. fp->r0, fp->r1, fp->r2, fp->r3);
  60. printf("R4: %08lx R5: %08lx R6: %08lx R7: %08lx\n",
  61. fp->r4, fp->r5, fp->r6, fp->r7);
  62. printf("P0: %08lx P1: %08lx P2: %08lx P3: %08lx\n",
  63. fp->p0, fp->p1, fp->p2, fp->p3);
  64. printf("P4: %08lx P5: %08lx FP: %08lx\n", fp->p4, fp->p5,
  65. fp->fp);
  66. printf("A0.w: %08lx A0.x: %08lx A1.w: %08lx A1.x: %08lx\n",
  67. fp->a0w, fp->a0x, fp->a1w, fp->a1x);
  68. printf("\n");
  69. }