diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/s390/include/asm/ucontext.h | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'arch/s390/include/asm/ucontext.h')
-rw-r--r-- | arch/s390/include/asm/ucontext.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/s390/include/asm/ucontext.h b/arch/s390/include/asm/ucontext.h new file mode 100644 index 00000000000..cfb874e66c9 --- /dev/null +++ b/arch/s390/include/asm/ucontext.h | |||
@@ -0,0 +1,35 @@ | |||
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 | |||
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 | |||
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 */ | ||