diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-01-04 19:40:49 +0100 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-03-01 21:32:50 +0100 |
commit | b46dcfa378b0cdea1ee832802c9e36750e0fffa9 (patch) | |
tree | 38f96eb95db4e95c8240c80c352a29ba49c7e846 /arch/xtensa/include | |
parent | xtensa: clean up bootable image build targets (diff) | |
download | linux-b46dcfa378b0cdea1ee832802c9e36750e0fffa9.tar.xz linux-b46dcfa378b0cdea1ee832802c9e36750e0fffa9.zip |
xtensa: allow merging vectors into .text section
Currently code for exception/IRQ vectors is stored in kernel image as
initialization data and is copied to its working addresses during
startup. It doesn't always make sense. In many cases vectors location
can be automatically decided at kernel link time and code can be placed
right there. This is especially useful for XIP kernel.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r-- | arch/xtensa/include/asm/vectors.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/vectors.h b/arch/xtensa/include/asm/vectors.h index 77d41cc7a688..65d3da9db19b 100644 --- a/arch/xtensa/include/asm/vectors.h +++ b/arch/xtensa/include/asm/vectors.h @@ -67,7 +67,11 @@ static inline unsigned long xtensa_get_kio_paddr(void) #endif /* CONFIG_MMU */ #define RESET_VECTOR1_VADDR (XCHAL_RESET_VECTOR1_VADDR) +#ifdef CONFIG_VECTORS_OFFSET #define VECBASE_VADDR (KERNELOFFSET - CONFIG_VECTORS_OFFSET) +#else +#define VECBASE_VADDR _vecbase +#endif #if defined(XCHAL_HAVE_VECBASE) && XCHAL_HAVE_VECBASE |