mirror of https://gitee.com/openkylin/linux.git
xtensa: clean up optional XCHAL_* definitions
Simplify users of XCHAL_HAVE_EXTERN_REGS and XCHAL_HAVE_VECBASE and always define them as 0 if they're not defined in the variant/core.h Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
5b78791440
commit
a922b15611
|
@ -10,10 +10,18 @@
|
||||||
#define XCHAL_HAVE_EXCLUSIVE 0
|
#define XCHAL_HAVE_EXCLUSIVE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef XCHAL_HAVE_EXTERN_REGS
|
||||||
|
#define XCHAL_HAVE_EXTERN_REGS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef XCHAL_HAVE_MPU
|
#ifndef XCHAL_HAVE_MPU
|
||||||
#define XCHAL_HAVE_MPU 0
|
#define XCHAL_HAVE_MPU 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef XCHAL_HAVE_VECBASE
|
||||||
|
#define XCHAL_HAVE_VECBASE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef XCHAL_SPANNING_WAY
|
#ifndef XCHAL_SPANNING_WAY
|
||||||
#define XCHAL_SPANNING_WAY 0
|
#define XCHAL_SPANNING_WAY 0
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -237,10 +237,6 @@ extern unsigned long get_wchan(struct task_struct *p);
|
||||||
v; \
|
v; \
|
||||||
})
|
})
|
||||||
|
|
||||||
#ifndef XCHAL_HAVE_EXTERN_REGS
|
|
||||||
#define XCHAL_HAVE_EXTERN_REGS 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if XCHAL_HAVE_EXTERN_REGS
|
#if XCHAL_HAVE_EXTERN_REGS
|
||||||
|
|
||||||
static inline void set_er(unsigned long value, unsigned long addr)
|
static inline void set_er(unsigned long value, unsigned long addr)
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#define VECBASE_VADDR _vecbase
|
#define VECBASE_VADDR _vecbase
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(XCHAL_HAVE_VECBASE) && XCHAL_HAVE_VECBASE
|
#if XCHAL_HAVE_VECBASE
|
||||||
|
|
||||||
#define VECTOR_VADDR(offset) (VECBASE_VADDR + offset)
|
#define VECTOR_VADDR(offset) (VECBASE_VADDR + offset)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue