From 1c424d26975345dec30e525319056cdb2280b170 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 26 Jan 2015 14:32:23 +0100 Subject: microblaze: Show return address from exception Show also return address from exception which should suggest where the problem is. Signed-off-by: Michal Simek --- arch/microblaze/include/asm/asm.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/microblaze/include/asm') diff --git a/arch/microblaze/include/asm/asm.h b/arch/microblaze/include/asm/asm.h index c1c3b039857..11f3dd0f0ec 100644 --- a/arch/microblaze/include/asm/asm.h +++ b/arch/microblaze/include/asm/asm.h @@ -43,6 +43,10 @@ #define R14(val) \ __asm__ __volatile__ ("addi %0, r14, 0":"=r" (val)); +/* get return address from interrupt */ +#define R17(val) \ + __asm__ __volatile__ ("addi %0, r17, 0" : "=r" (val)); + #define NOP __asm__ __volatile__ ("nop"); /* use machine status registe USE_MSR_REG */ -- cgit v1.2.3