123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- #ifndef _SYS_UCONTEXT_H
- #define _SYS_UCONTEXT_H 1
- #include <features.h>
- #include <signal.h>
- #include <bits/sigcontext.h>
- typedef unsigned long int __riscv_mc_gp_state[32];
- #ifdef __USE_MISC
- # define NGREG 32
- # define REG_PC 0
- # define REG_RA 1
- # define REG_SP 2
- # define REG_TP 4
- # define REG_S0 8
- # define REG_S1 9
- # define REG_A0 10
- # define REG_S2 18
- # define REG_NARGS 8
- typedef unsigned long int greg_t;
- typedef __riscv_mc_gp_state gregset_t;
- typedef union __riscv_mc_fp_state fpregset_t;
- #endif
- struct __riscv_mc_f_ext_state
- {
- unsigned int __f[32];
- unsigned int __fcsr;
- };
- struct __riscv_mc_d_ext_state
- {
- unsigned long long int __f[32];
- unsigned int __fcsr;
- };
- struct __riscv_mc_q_ext_state
- {
- unsigned long long int __f[64] __attribute__ ((__aligned__ (16)));
- unsigned int __fcsr;
-
- unsigned int __glibc_reserved[3];
- };
- union __riscv_mc_fp_state
- {
- struct __riscv_mc_f_ext_state __f;
- struct __riscv_mc_d_ext_state __d;
- struct __riscv_mc_q_ext_state __q;
- };
- typedef struct mcontext_t
- {
- __riscv_mc_gp_state __gregs;
- union __riscv_mc_fp_state __fpregs;
- } mcontext_t;
- typedef struct ucontext
- {
- unsigned long int __uc_flags;
- struct ucontext *uc_link;
- stack_t uc_stack;
- sigset_t uc_sigmask;
-
- char __glibc_reserved[1024 / 8 - sizeof (sigset_t)];
-
- mcontext_t uc_mcontext;
- } ucontext_t;
- #endif
|