X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=arch%2Fmicroblaze%2Finclude%2Fasm%2Fasm.h;h=11f3dd0f0ec026acba812efffc8351114bf2a334;hb=c1924d85af4a07dc70aef1ef95c48b54a136733f;hp=ce9bb8a8d66683aa1475454c9c78438451a12a8e;hpb=326ea986ac150acdc7656d57fca647db80b50158;p=u-boot diff --git a/arch/microblaze/include/asm/asm.h b/arch/microblaze/include/asm/asm.h index ce9bb8a8d6..11f3dd0f0e 100644 --- a/arch/microblaze/include/asm/asm.h +++ b/arch/microblaze/include/asm/asm.h @@ -3,7 +3,7 @@ * * Michal SIMEK * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ /* FSL macros */ @@ -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 */