Commit de1a3f1c authored by Martin Schwidefsky's avatar Martin Schwidefsky

[S390] EX_TABLE macro.

Add EX_TABLE helper macro to simplify creation of inline assembly
exception table entries.
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent e478bec0
...@@ -339,4 +339,21 @@ int unregister_idle_notifier(struct notifier_block *nb); ...@@ -339,4 +339,21 @@ int unregister_idle_notifier(struct notifier_block *nb);
#endif #endif
/*
* Helper macro for exception table entries
*/
#ifndef __s390x__
#define EX_TABLE(_fault,_target) \
".section __ex_table,\"a\"\n" \
" .align 4\n" \
" .long " #_fault "," #_target "\n" \
".previous\n"
#else
#define EX_TABLE(_fault,_target) \
".section __ex_table,\"a\"\n" \
" .align 8\n" \
" .quad " #_fault "," #_target "\n" \
".previous\n"
#endif
#endif /* __ASM_S390_PROCESSOR_H */ #endif /* __ASM_S390_PROCESSOR_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment