summaryrefslogtreecommitdiff
path: root/arch/xtensa/include/asm
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2020-02-01 05:48:43 +0300
committerMax Filippov <jcmvbkbc@gmail.com>2020-02-05 08:53:39 +0300
commit50722f0bf631cfcbcce18dac6b3fb5c2b6432628 (patch)
tree23ec7b5989f9cf6f1c987daeafd1ee60d148dbb6 /arch/xtensa/include/asm
parent58bc6c69afe51ed19d1294ab0bb319b7df1cf75a (diff)
downloadlinux-50722f0bf631cfcbcce18dac6b3fb5c2b6432628.tar.xz
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/asm')
-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 */