Skip to content

Commit

Permalink
[S390] EX_TABLE macro.
Browse files Browse the repository at this point in the history
Add EX_TABLE helper macro to simplify creation of inline assembly
exception table entries.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Martin Schwidefsky committed Sep 20, 2006
1 parent e478bec commit de1a3f1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions include/asm-s390/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,4 +339,21 @@ int unregister_idle_notifier(struct notifier_block *nb);

#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 */

0 comments on commit de1a3f1

Please sign in to comment.