aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2020-01-31 18:48:43 -0800
committerMax Filippov <jcmvbkbc@gmail.com>2020-02-04 21:53:39 -0800
commit50722f0bf631cfcbcce18dac6b3fb5c2b6432628 (patch)
tree23ec7b5989f9cf6f1c987daeafd1ee60d148dbb6 /arch/xtensa/include
parentarch/xtensa: fix Kconfig typos for HAVE_SMP (diff)
downloadlinux-dev-50722f0bf631cfcbcce18dac6b3fb5c2b6432628.tar.xz
linux-dev-50722f0bf631cfcbcce18dac6b3fb5c2b6432628.zip
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>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r--arch/xtensa/include/asm/asmmacro.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/asmmacro.h b/arch/xtensa/include/asm/asmmacro.h
index 71a7e846bc1f..bfc89e11f469 100644
--- a/arch/xtensa/include/asm/asmmacro.h
+++ b/arch/xtensa/include/asm/asmmacro.h
@@ -237,4 +237,6 @@
#error Unsupported Xtensa ABI
#endif
+#define __XTENSA_HANDLER .section ".exception.text", "ax"
+
#endif /* _XTENSA_ASMMACRO_H */