]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: move fast exception handlers close to vectors
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 1 Feb 2020 02:48:43 +0000 (18:48 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 5 Feb 2020 05:53:39 +0000 (21:53 -0800)
commitd746e8a8f198bceddbf5e3e25e49a515a071f612
tree23ec7b5989f9cf6f1c987daeafd1ee60d148dbb6
parentc8e5323d6e3051d8b0f8fec805f505c32e6d7466
xtensa: move fast exception handlers close to vectors

On XIP kernels it makes sense to have exception vectors and fast
exception handlers together (in a fast memory). In addition, with MTD
XIP support both vectors and fast exception handlers must be outside of
the FLASH.

Add section .exception.text and move fast exception handlers to it.
Put it together with vectors when vectors are outside of the .text.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/asmmacro.h
arch/xtensa/kernel/coprocessor.S
arch/xtensa/kernel/entry.S
arch/xtensa/kernel/setup.c
arch/xtensa/kernel/vectors.S
arch/xtensa/kernel/vmlinux.lds.S