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:
@@ -40,7 +40,7 @@
|
||||
#define VECBASE_VADDR _vecbase
|
||||
#endif
|
||||
|
||||
#if defined(XCHAL_HAVE_VECBASE) && XCHAL_HAVE_VECBASE
|
||||
#if XCHAL_HAVE_VECBASE
|
||||
|
||||
#define VECTOR_VADDR(offset) (VECBASE_VADDR + offset)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user