diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-09-20 09:58:20 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-09-20 09:58:20 -0400 |
commit | de1a3f1ce6c4c3b2b14cf9157a22d6b4c64f708e (patch) | |
tree | dcda907cb6bb49ddbbaa1ac70108188da7f38a9d /include/asm-s390/processor.h | |
parent | e478bec0ba0a83a48a0f6982934b6de079e7e6b3 (diff) |
[S390] EX_TABLE macro.
Add EX_TABLE helper macro to simplify creation of inline assembly
exception table entries.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390/processor.h')
-rw-r--r-- | include/asm-s390/processor.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/asm-s390/processor.h b/include/asm-s390/processor.h index 5b71d3731723..a3a4e5fd30d7 100644 --- a/include/asm-s390/processor.h +++ b/include/asm-s390/processor.h | |||
@@ -339,4 +339,21 @@ int unregister_idle_notifier(struct notifier_block *nb); | |||
339 | 339 | ||
340 | #endif | 340 | #endif |
341 | 341 | ||
342 | /* | ||
343 | * Helper macro for exception table entries | ||
344 | */ | ||
345 | #ifndef __s390x__ | ||
346 | #define EX_TABLE(_fault,_target) \ | ||
347 | ".section __ex_table,\"a\"\n" \ | ||
348 | " .align 4\n" \ | ||
349 | " .long " #_fault "," #_target "\n" \ | ||
350 | ".previous\n" | ||
351 | #else | ||
352 | #define EX_TABLE(_fault,_target) \ | ||
353 | ".section __ex_table,\"a\"\n" \ | ||
354 | " .align 8\n" \ | ||
355 | " .quad " #_fault "," #_target "\n" \ | ||
356 | ".previous\n" | ||
357 | #endif | ||
358 | |||
342 | #endif /* __ASM_S390_PROCESSOR_H */ | 359 | #endif /* __ASM_S390_PROCESSOR_H */ |