summaryrefslogtreecommitdiff
path: root/cpu/blackfin/traps.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-06 04:20:54 -0400
committerMike Frysinger <vapier@gentoo.org>2008-10-23 05:03:50 -0400
commit2de95bb20c488f20298df6881b700a5a757ee780 (patch)
treea8cb3d481a3d17e0cc90500e0842cbf70532e267 /cpu/blackfin/traps.c
parent7133999e6f62a9a01f6a8ffe234b8532b3ad1e4b (diff)
downloadu-boot-imx-2de95bb20c488f20298df6881b700a5a757ee780.zip
u-boot-imx-2de95bb20c488f20298df6881b700a5a757ee780.tar.gz
u-boot-imx-2de95bb20c488f20298df6881b700a5a757ee780.tar.bz2
Blackfin: fix register dump messages
Make sure we report RETI/IPEND correctly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'cpu/blackfin/traps.c')
-rw-r--r--cpu/blackfin/traps.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpu/blackfin/traps.c b/cpu/blackfin/traps.c
index 7307f5d..5a26c52 100644
--- a/cpu/blackfin/traps.c
+++ b/cpu/blackfin/traps.c
@@ -244,6 +244,9 @@ void dump(struct pt_regs *fp)
if (!ENABLE_DUMP)
return;
+ /* fp->ipend is garbage, so load it ourself */
+ fp->ipend = bfin_read_IPEND();
+
printf("SEQUENCER STATUS:\n");
printf(" SEQSTAT: %08lx IPEND: %04lx SYSCFG: %04lx\n",
fp->seqstat, fp->ipend, fp->syscfg);
@@ -263,8 +266,9 @@ void dump(struct pt_regs *fp)
printf(" RETX: %s\n", buf);
decode_address(buf, fp->rets);
printf(" RETS: %s\n", buf);
+ /* we lie and store RETI in "pc" */
decode_address(buf, fp->pc);
- printf(" PC : %s\n", buf);
+ printf(" RETI: %s\n", buf);
if (fp->seqstat & EXCAUSE) {
decode_address(buf, bfin_read_DCPLB_FAULT_ADDR());