diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-09 21:18:47 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-10 14:48:53 -0800 |
commit | 0013aceb307482ba83a5b6a29f6ba1791be0d32b (patch) | |
tree | 63f0312a68e62d0f52212ce7bdab9d75e4ee6ead /arch/xtensa/include/asm/asmmacro.h | |
parent | 2da03d4114b2587f0e8e45f4862074e34daee64e (diff) |
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/asm/asmmacro.h')
-rw-r--r-- | arch/xtensa/include/asm/asmmacro.h | 7 |
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 */ |