Commit dedfe259 authored by Max Filippov's avatar Max Filippov

xtensa: add xtensa_xsr macro

xtensa_xsr does the XSR instruction for the specified special register.
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 0b549f81
......@@ -246,6 +246,13 @@ extern unsigned long __get_wchan(struct task_struct *p);
v; \
})
#define xtensa_xsr(x, sr) \
({ \
unsigned int __v__ = (unsigned int)(x); \
__asm__ __volatile__ ("xsr %0, " __stringify(sr) : "+a"(__v__)); \
__v__; \
})
#if XCHAL_HAVE_EXTERN_REGS
static inline void set_er(unsigned long value, unsigned long addr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment