diff options
Diffstat (limited to 'arch/s390/include/uapi/asm/ucontext.h')
-rw-r--r-- | arch/s390/include/uapi/asm/ucontext.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/ucontext.h b/arch/s390/include/uapi/asm/ucontext.h new file mode 100644 index 000000000000..200e06325c6a --- /dev/null +++ b/arch/s390/include/uapi/asm/ucontext.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * S390 version | ||
3 | * | ||
4 | * Derived from "include/asm-i386/ucontext.h" | ||
5 | */ | ||
6 | |||
7 | #ifndef _ASM_S390_UCONTEXT_H | ||
8 | #define _ASM_S390_UCONTEXT_H | ||
9 | |||
10 | #define UC_EXTENDED 0x00000001 | ||
11 | |||
12 | #ifndef __s390x__ | ||
13 | |||
14 | struct ucontext_extended { | ||
15 | unsigned long uc_flags; | ||
16 | struct ucontext *uc_link; | ||
17 | stack_t uc_stack; | ||
18 | _sigregs uc_mcontext; | ||
19 | unsigned long uc_sigmask[2]; | ||
20 | unsigned long uc_gprs_high[16]; | ||
21 | }; | ||
22 | |||
23 | #endif | ||
24 | |||
25 | struct ucontext { | ||
26 | unsigned long uc_flags; | ||
27 | struct ucontext *uc_link; | ||
28 | stack_t uc_stack; | ||
29 | _sigregs uc_mcontext; | ||
30 | sigset_t uc_sigmask; /* mask last for extensibility */ | ||
31 | }; | ||
32 | |||
33 | #endif /* !_ASM_S390_UCONTEXT_H */ | ||