OSDN Git Service

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)
commit50722f0bf631cfcbcce18dac6b3fb5c2b6432628
tree23ec7b5989f9cf6f1c987daeafd1ee60d148dbb6
parent58bc6c69afe51ed19d1294ab0bb319b7df1cf75a
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