1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #ifndef _SYS_UCONTEXT_H
- #define _SYS_UCONTEXT_H 1
- #include <features.h>
- #include <signal.h>
- #include <bits/sigcontext.h>
- # define NGREG 48
- typedef unsigned long gregset_t[NGREG];
- typedef struct _libc_fpstate
- {
- double fpregs[32];
- double fpscr;
- unsigned int _pad[2];
- } fpregset_t;
- typedef struct _libc_vrstate
- {
- unsigned int vrregs[32][4];
- unsigned int vrsave;
- unsigned int _pad[2];
- unsigned int vscr;
- } vrregset_t;
- typedef struct
- {
- gregset_t gregs;
- fpregset_t fpregs;
- vrregset_t vrregs __attribute__((__aligned__(16)));
- } mcontext_t;
- typedef struct ucontext
- {
- unsigned long int uc_flags;
- struct ucontext *uc_link;
- stack_t uc_stack;
-
- int uc_pad[7];
- union uc_regs_ptr {
- struct pt_regs *regs;
- mcontext_t *uc_regs;
- } uc_mcontext;
- sigset_t uc_sigmask;
- char uc_reg_space[sizeof(mcontext_t) + 12];
- } ucontext_t;
- #endif
|