summaryrefslogtreecommitdiff
path: root/arch/microblaze/cpu
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-01-26 14:32:23 +0100
committerMichal Simek <michal.simek@xilinx.com>2015-02-09 15:09:56 +0100
commit1c424d26975345dec30e525319056cdb2280b170 (patch)
tree0e77b2fdc29d9b0e1190d5152df38976ce9597e0 /arch/microblaze/cpu
parentcd8574c0a7b087e85b464779ab5d486644d5013b (diff)
downloadu-boot-1c424d26975345dec30e525319056cdb2280b170.tar.gz
u-boot-1c424d26975345dec30e525319056cdb2280b170.tar.bz2
u-boot-1c424d26975345dec30e525319056cdb2280b170.zip
microblaze: Show return address from exception
Show also return address from exception which should suggest where the problem is. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/cpu')
-rw-r--r--arch/microblaze/cpu/exception.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/microblaze/cpu/exception.c b/arch/microblaze/cpu/exception.c
index 227842f6a4..45729331f3 100644
--- a/arch/microblaze/cpu/exception.c
+++ b/arch/microblaze/cpu/exception.c
@@ -18,6 +18,8 @@ void _hw_exception_handler (void)
/* loading excetpion state register ESR */
MFS (state, resr);
printf ("Hardware exception at 0x%x address\n", address);
+ R17(address);
+ printf("Return address from exception 0x%x\n", address);
switch (state & 0x1f) { /* mask on exception cause */
case 0x1:
puts ("Unaligned data access exception\n");