xtensa: make secondary reset vector support conditional
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 28 Dec 2021 09:28:53 +0000 (01:28 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 10 Mar 2022 00:59:18 +0000 (16:59 -0800)
commit89b184f980f012421fb22c939b50b3dfd7fe16b3
tree2778322d6cc40877427e13cf0cc730670329ab77
parentc20e1117d9aa22c558646a1060ddd1dd042fb107
xtensa: make secondary reset vector support conditional

Whether xtensa cores start from primary or secondary reset vector is
configurable and may be chosen by board designer or controlled at
runtime. When secondary reset vector is unused its location in memory
may not be writable.
Make secondary reset vector support conditional and don't build and load
secondary reset vector code when it is disabled.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/Kconfig
arch/xtensa/kernel/Makefile
arch/xtensa/kernel/setup.c
arch/xtensa/kernel/vmlinux.lds.S