diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2021-12-28 01:28:53 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2022-03-09 16:59:18 -0800 |
commit | 89b184f980f012421fb22c939b50b3dfd7fe16b3 (patch) | |
tree | 2778322d6cc40877427e13cf0cc730670329ab77 /arch/xtensa/kernel/setup.c | |
parent | xtensa: add kernel ABI selection to Kconfig (diff) | |
download | linux-dev-89b184f980f012421fb22c939b50b3dfd7fe16b3.tar.xz linux-dev-89b184f980f012421fb22c939b50b3dfd7fe16b3.zip |
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>
Diffstat (limited to 'arch/xtensa/kernel/setup.c')
-rw-r--r-- | arch/xtensa/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 3f1842891482..9191738f9941 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c @@ -349,7 +349,7 @@ void __init setup_arch(char **cmdline_p) #endif /* CONFIG_VECTORS_ADDR */ -#ifdef CONFIG_SMP +#ifdef CONFIG_SECONDARY_RESET_VECTOR mem_reserve(__pa(_SecondaryResetVector_text_start), __pa(_SecondaryResetVector_text_end)); #endif |