/* Copyright (C) 2002-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/>. */
#ifndef _BITS_SIGCONTEXT_H
#define _BITS_SIGCONTEXT_H 1
#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
#define FP_XSTATE_MAGIC1 0x46505853U
#define FP_XSTATE_MAGIC2 0x46505845U
#define FP_XSTATE_MAGIC2_SIZE sizeof(FP_XSTATE_MAGIC2)
__uint32_t extended_size;
__uint32_t __glibc_reserved1[7];
unsigned short significand[4];
unsigned short significand[4];
unsigned short __glibc_reserved1[3];
/* Regular FPU environment. */
/* FXSR FPU environment. */
__uint32_t __glibc_reserved1;
struct _fpxreg _fxsr_st[8];
__uint32_t __glibc_reserved2[56];
#ifndef sigcontext_struct
/* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
we need sigcontext. Some packages have come to rely on
sigcontext_struct being defined on 32-bit x86, so define this for
# define sigcontext_struct sigcontext
#define X86_FXSR_MAGIC 0x0000
unsigned short gs, __gsh;
unsigned short fs, __fsh;
unsigned short es, __esh;
unsigned short ds, __dsh;
unsigned short cs, __csh;
unsigned long esp_at_signal;
unsigned short ss, __ssh;
struct _fpstate * fpstate;
/* FPU environment matching the 64-bit FXSAVE layout. */
__uint32_t __glibc_reserved1[24];
struct _fpstate * fpstate;
__uint64_t __fpstate_word;
__uint64_t __reserved1 [8];
__uint64_t __glibc_reserved1[2];
__uint64_t __glibc_reserved2[5];
__uint32_t ymmh_space[64];
struct _xsave_hdr xstate_hdr;
#endif /* _BITS_SIGCONTEXT_H */