/* Copyright (C) 2001-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
#define _SYS_UCONTEXT_H 1
#include <bits/types/sigset_t.h>
#include <bits/types/stack_t.h>
# define __ctx(fld) __ ## fld
/* Type for general register. */
__extension__ typedef long long int greg_t;
/* Number of general registers. */
/* Container for all general registers. */
typedef greg_t gregset_t[__NGREG];
/* Number of each register in the `gregset_t' array. */
REG_CSGSFS, /* Actually short cs, gs, fs, __pad0. */
# define REG_CSGSFS REG_CSGSFS
# define REG_TRAPNO REG_TRAPNO
# define REG_OLDMASK REG_OLDMASK
unsigned short int __ctx(significand)[4];
unsigned short int __ctx(exponent);
unsigned short int __glibc_reserved1[3];
__uint32_t __ctx(element)[4];
/* 64-bit FXSAVE format. */
__uint32_t __ctx(mxcr_mask);
struct _libc_fpxreg _st[8];
struct _libc_xmmreg _xmm[16];
__uint32_t __glibc_reserved1[24];
/* Structure to describe FPU registers. */
typedef struct _libc_fpstate *fpregset_t;
/* Context to describe whole processor state. */
/* Note that fpregs is a pointer. */
fpregset_t __ctx(fpregs);
__extension__ unsigned long long __reserved1 [8];
typedef struct ucontext_t
unsigned long int __ctx(uc_flags);
struct ucontext_t *uc_link;
struct _libc_fpstate __fpregs_mem;
__extension__ unsigned long long int __ssp[4];
/* Type for general register. */
/* Number of general registers. */
/* Container for all general registers. */
typedef greg_t gregset_t[__NGREG];
/* Number of each register is the `gregset_t' array. */
# define REG_TRAPNO REG_TRAPNO
# define REG_UESP REG_UESP
/* Definitions taken from the kernel headers. */
unsigned short int __ctx(significand)[4];
unsigned short int __ctx(exponent);
unsigned long int __ctx(cw);
unsigned long int __ctx(sw);
unsigned long int __ctx(tag);
unsigned long int __ctx(ipoff);
unsigned long int __ctx(cssel);
unsigned long int __ctx(dataoff);
unsigned long int __ctx(datasel);
struct _libc_fpreg _st[8];
unsigned long int __ctx(status);
/* Structure to describe FPU registers. */
typedef struct _libc_fpstate *fpregset_t;
/* Context to describe whole processor state. */
/* Due to Linux's history we have to use a pointer here. The SysV/i386
ABI requires a struct with the values. */
fpregset_t __ctx(fpregs);
unsigned long int __ctx(oldmask);
unsigned long int __ctx(cr2);
typedef struct ucontext_t
unsigned long int __ctx(uc_flags);
struct ucontext_t *uc_link;
struct _libc_fpstate __fpregs_mem;
unsigned long int __ssp[4];
#endif /* sys/ucontext.h */