OSDN Git Service

xtensa: reorganize vectors placement
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 1 Feb 2020 04:11:24 +0000 (20:11 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 5 Feb 2020 05:57:02 +0000 (21:57 -0800)
commit5e4417f921238b5acf101bfcd59a7b3463fb2dbd
treed4d46c0c679937e483f4a2de6e105a5f6afbcbec
parent4f17664a4407004f71dc76de01c89fdb6efc0776
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>
arch/xtensa/Kconfig
arch/xtensa/configs/smp_lx200_defconfig
arch/xtensa/configs/virt_defconfig
arch/xtensa/include/asm/vectors.h
arch/xtensa/kernel/setup.c
arch/xtensa/kernel/vmlinux.lds.S