]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/microblaze/include/asm/asm.h
microblaze: Move MSR instruction selection to Kconfig
[people/ms/u-boot.git] / arch / microblaze / include / asm / asm.h
index c1c3b03985795a966dff2d821b79bb19ead98d39..94f056275914ca5128fc4d2eabdc28737e1b4484 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 */
-#if XILINX_USE_MSR_INSTR == 1
+#if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR == 1
 #define MSRSET(val) \
        __asm__ __volatile__ ("msrset r0," #val );