]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/microblaze/include/asm/asm.h
microblaze: Show return address from exception
[karo-tx-uboot.git] / arch / microblaze / include / asm / asm.h
index c1c3b03985795a966dff2d821b79bb19ead98d39..11f3dd0f0ec026acba812efffc8351114bf2a334 100644 (file)
 #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 */