diff options
author | Michal Simek <michal.simek@xilinx.com> | 2015-01-26 14:32:23 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-02-09 15:09:56 +0100 |
commit | 1c424d26975345dec30e525319056cdb2280b170 (patch) | |
tree | 0e77b2fdc29d9b0e1190d5152df38976ce9597e0 /arch/microblaze/include | |
parent | cd8574c0a7b087e85b464779ab5d486644d5013b (diff) | |
download | u-boot-1c424d26975345dec30e525319056cdb2280b170.tar.gz |
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/include')
-rw-r--r-- | arch/microblaze/include/asm/asm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/asm.h b/arch/microblaze/include/asm/asm.h index c1c3b03985..11f3dd0f0e 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 */ |