diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2021-07-26 07:32:55 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2021-10-18 22:19:35 -0700 |
commit | da0a4e5c8fbcce3d1afebf9f2a967083bb19634d (patch) | |
tree | 5decac9abd975143a4f0f0fd63607dc4aaadb324 /arch/xtensa/kernel/setup.c | |
parent | xtensa: use register window specific opcodes only when present (diff) | |
download | linux-dev-da0a4e5c8fbcce3d1afebf9f2a967083bb19634d.tar.xz linux-dev-da0a4e5c8fbcce3d1afebf9f2a967083bb19634d.zip |
xtensa: only build windowed register support code when needed
There's no need in window overflow/underflow/alloca exception handlers
or window spill code when neither kernel nor userspace support windowed
registers. Don't build or link it.
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, 2 insertions, 0 deletions
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index ee9082a142fe..ad665e8c9416 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c @@ -349,8 +349,10 @@ void __init setup_arch(char **cmdline_p) #endif #ifdef CONFIG_VECTORS_ADDR +#ifdef SUPPORT_WINDOWED mem_reserve(__pa(&_WindowVectors_text_start), __pa(&_WindowVectors_text_end)); +#endif mem_reserve(__pa(&_DebugInterruptVector_text_start), __pa(&_DebugInterruptVector_text_end)); |