summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include
diff options
context:
space:
mode:
authorMax Filippov2017-12-10 06:18:47 +0100
committerMax Filippov2017-12-10 23:48:53 +0100
commit0013aceb307482ba83a5b6a29f6ba1791be0d32b (patch)
tree63f0312a68e62d0f52212ce7bdab9d75e4ee6ead /arch/xtensa/include
parentxtensa: use call instead of callx in assembly code (diff)
downloadkernel-qcow2-linux-0013aceb307482ba83a5b6a29f6ba1791be0d32b.tar.gz
kernel-qcow2-linux-0013aceb307482ba83a5b6a29f6ba1791be0d32b.tar.xz
kernel-qcow2-linux-0013aceb307482ba83a5b6a29f6ba1791be0d32b.zip
xtensa: clean up fixups in assembly code
Remove duplicate definitions of EX() and similar TRY/CATCH and SRC/DST macros from assembly sources and put single definition into asm/asmmacro.h Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r--arch/xtensa/include/asm/asmmacro.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/asmmacro.h b/arch/xtensa/include/asm/asmmacro.h
index 746dcc8b5abc..d2a4415a4c08 100644
--- a/arch/xtensa/include/asm/asmmacro.h
+++ b/arch/xtensa/include/asm/asmmacro.h
@@ -150,5 +150,12 @@
__endl \ar \as
.endm
+/* Load or store instructions that may cause exceptions use the EX macro. */
+
+#define EX(handler) \
+ .section __ex_table, "a"; \
+ .word 97f, handler; \
+ .previous \
+97:
#endif /* _XTENSA_ASMMACRO_H */