- Kai Germaschewski: ymfpci cleanups and resource leak fixes
[davej-history.git] / include / asm-s390 / sigcontext.h
blob610f20e2630058991f058c6baaf0864ee6fb1dec
1 /*
2 * include/asm-s390/sigcontext.h
4 * S390 version
5 * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
6 */
8 #ifndef _ASM_S390_SIGCONTEXT_H
9 #define _ASM_S390_SIGCONTEXT_H
10 #include <asm/s390-regs-common.h>
13 Has to be at least _NSIG_WORDS from asm/signal.h
15 #define _SIGCONTEXT_NSIG 64
16 #define _SIGCONTEXT_NSIG_BPW 32
17 /* Size of stack frame allocated when calling signal handler. */
18 #define __SIGNAL_FRAMESIZE STACK_FRAME_OVERHEAD
19 #define _SIGCONTEXT_NSIG_WORDS (_SIGCONTEXT_NSIG / _SIGCONTEXT_NSIG_BPW)
20 #define SIGMASK_COPY_SIZE (sizeof(unsigned long)*_SIGCONTEXT_NSIG_WORDS)
22 typedef struct
24 s390_regs_common regs;
25 s390_fp_regs fpregs;
26 } sigregs;
28 struct sigcontext
30 unsigned long oldmask[_SIGCONTEXT_NSIG_WORDS];
31 sigregs *sregs;
35 #endif