1 /* Copyright 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
19 /* AM33/2.0 context switching support. */
21 #ifndef _SYS_UCONTEXT_H
22 #define _SYS_UCONTEXT_H 1
27 /* Type for general register. */
30 /* Number of general registers. */
33 /* Container for all general registers. */
34 typedef greg_t gregset_t
[NGREG
];
36 /* Number of each register is the `gregset_t' array. */
72 #define REG_LAR REG_LAR
74 #define REG_LIR REG_LIR
76 #define REG_MDR REG_MDR
78 #define REG_MCVF REG_MCVF
80 #define REG_MCRL REG_MCRL
82 #define REG_MCRH REG_MCRH
84 #define REG_MDRQ REG_MDRQ
88 #define REG_EPSW REG_EPSW
95 /* Structure to describe FPU registers. */
105 /* Context to describe whole processor state. */
112 /* Userlevel context. */
113 typedef struct ucontext
115 unsigned long int uc_flags
;
116 struct ucontext
*uc_link
;
117 __sigset_t uc_sigmask
;
119 mcontext_t uc_mcontext
;
120 long int uc_filler
[5];
123 #endif /* sys/ucontext.h */