diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2020-02-01 07:11:24 +0300 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2020-02-05 08:57:02 +0300 |
commit | 5e4417f921238b5acf101bfcd59a7b3463fb2dbd (patch) | |
tree | d4d46c0c679937e483f4a2de6e105a5f6afbcbec /arch/xtensa/include | |
parent | 4f17664a4407004f71dc76de01c89fdb6efc0776 (diff) | |
download | linux-5e4417f921238b5acf101bfcd59a7b3463fb2dbd.tar.xz |
xtensa: reorganize vectors placement
Allow vectors to be either merged into the kernel .text or put at a
fixed virtual address independently of XIP option. Drop option that
puts vectors at a fixed offset from the kernel text. Add choice to
Kconfig.
Vectors at fixed virtual address may be useful for XIP-aware MTD support
and for noMMU configurations with available IRAM. Configurations without
VECBASE register must put their vectors at specific locations regardless
of the selected option. All other configurations should happily use
merged vectors.
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, 2 insertions, 2 deletions
diff --git a/arch/xtensa/include/asm/vectors.h b/arch/xtensa/include/asm/vectors.h index 140f30762cf9..704286c35640 100644 --- a/arch/xtensa/include/asm/vectors.h +++ b/arch/xtensa/include/asm/vectors.h @@ -34,8 +34,8 @@ #endif #define RESET_VECTOR1_VADDR (XCHAL_RESET_VECTOR1_VADDR) -#ifdef CONFIG_VECTORS_OFFSET -#define VECBASE_VADDR (KERNELOFFSET - CONFIG_VECTORS_OFFSET) +#ifdef CONFIG_VECTORS_ADDR +#define VECBASE_VADDR (CONFIG_VECTORS_ADDR) #else #define VECBASE_VADDR _vecbase #endif |