Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * include/asm-s390/ucontext.h |
| 3 | * |
| 4 | * S390 version |
| 5 | * |
| 6 | * Derived from "include/asm-i386/ucontext.h" |
| 7 | */ |
| 8 | |
| 9 | #ifndef _ASM_S390_UCONTEXT_H |
| 10 | #define _ASM_S390_UCONTEXT_H |
| 11 | |
Heiko Carstens | ea2a4d3 | 2009-10-06 10:34:13 +0200 | [diff] [blame] | 12 | #define UC_EXTENDED 0x00000001 |
| 13 | |
| 14 | #ifndef __s390x__ |
| 15 | |
| 16 | struct ucontext_extended { |
| 17 | unsigned long uc_flags; |
| 18 | struct ucontext *uc_link; |
| 19 | stack_t uc_stack; |
| 20 | _sigregs uc_mcontext; |
| 21 | unsigned long uc_sigmask[2]; |
| 22 | unsigned long uc_gprs_high[16]; |
| 23 | }; |
| 24 | |
| 25 | #endif |
| 26 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | struct ucontext { |
| 28 | unsigned long uc_flags; |
| 29 | struct ucontext *uc_link; |
| 30 | stack_t uc_stack; |
| 31 | _sigregs uc_mcontext; |
| 32 | sigset_t uc_sigmask; /* mask last for extensibility */ |
| 33 | }; |
| 34 | |
| 35 | #endif /* !_ASM_S390_UCONTEXT_H */ |