We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b549f8 commit dedfe25Copy full SHA for dedfe25
1 file changed
arch/xtensa/include/asm/processor.h
@@ -246,6 +246,13 @@ extern unsigned long __get_wchan(struct task_struct *p);
246
v; \
247
})
248
249
+#define xtensa_xsr(x, sr) \
250
+ ({ \
251
+ unsigned int __v__ = (unsigned int)(x); \
252
+ __asm__ __volatile__ ("xsr %0, " __stringify(sr) : "+a"(__v__)); \
253
+ __v__; \
254
+ })
255
+
256
#if XCHAL_HAVE_EXTERN_REGS
257
258
static inline void set_er(unsigned long value, unsigned long addr)
0 commit comments