aboutsummaryrefslogtreecommitdiff
path: root/arch/microblaze/cpu/exception.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/cpu/exception.c')
-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 227842f..4572933 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");