diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2023-06-14 05:56:13 +0300 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2023-06-14 07:56:27 +0300 |
commit | 67e886229e27e80253e1ff9025a74a3dce941f17 (patch) | |
tree | d33f69927c1591698728407788dc103474da80c8 /arch/xtensa/include/asm | |
parent | 959b76a909bf520b3b2ead067db487a80d19663d (diff) | |
download | linux-67e886229e27e80253e1ff9025a74a3dce941f17.tar.xz |
xtensa: move early_trap_init from kasan_early_init to init_arch
There may be other users for the early traps besides KASAN. Move call to
the early_trap_init from kasan_early_init. Protect init_exc_table
initializer with ifdef to make sure it builds on noMMU configurations.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm')
-rw-r--r-- | arch/xtensa/include/asm/traps.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/traps.h b/arch/xtensa/include/asm/traps.h index 6f74ccc0c7ea..acffb02f8760 100644 --- a/arch/xtensa/include/asm/traps.h +++ b/arch/xtensa/include/asm/traps.h @@ -64,8 +64,10 @@ void do_unhandled(struct pt_regs *regs); static inline void __init early_trap_init(void) { static struct exc_table init_exc_table __initdata = { +#ifdef CONFIG_MMU .fast_kernel_handler[EXCCAUSE_DTLB_MISS] = fast_second_level_miss, +#endif }; xtensa_set_sr(&init_exc_table, excsave1); } |