1 /* Copyright 1997-2013 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. If not, see
16 <http://www.gnu.org/licenses/>. */
18 /* AM33/2.0 context switching support. */
20 #ifndef _SYS_UCONTEXT_H
21 #define _SYS_UCONTEXT_H 1
26 /* Type for general register. */
29 /* Number of general registers. */
32 /* Container for all general registers. */
33 typedef greg_t gregset_t[NGREG];
35 /* Number of each register is the `gregset_t' array. */
71 #define REG_LAR REG_LAR
73 #define REG_LIR REG_LIR
75 #define REG_MDR REG_MDR
77 #define REG_MCVF REG_MCVF
79 #define REG_MCRL REG_MCRL
81 #define REG_MCRH REG_MCRH
83 #define REG_MDRQ REG_MDRQ
87 #define REG_EPSW REG_EPSW
94 /* Structure to describe FPU registers. */
104 /* Context to describe whole processor state. */
111 /* Userlevel context. */
112 typedef struct ucontext
114 unsigned long int uc_flags;
115 struct ucontext *uc_link;
116 __sigset_t uc_sigmask;
118 mcontext_t uc_mcontext;
119 long int uc_filler[5];
122 #endif /* sys/ucontext.h */