MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / ucontext.h
blobf2e7ce2b7e6468903558b21bc3eba222f780af16
1 #ifndef _NIOSKNOMMU_UCONTEXT_H
2 #define _NIOSKNOMMU_UCONTEXT_H
4 /*--------------------------------------------------------------------
6 * include/asm-nios2nommu/ucontext.h
8 * Derived from M68knommu
10 * Copyright (C) 2004 Microtronix Datacom Ltd
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
23 * Jan/20/2004 dgt NiosII
25 ---------------------------------------------------------------------*/
28 typedef int greg_t;
29 #define NGREG 32
30 typedef greg_t gregset_t[NGREG];
32 #ifdef CONFIG_FPU
33 typedef struct fpregset {
34 int f_pcr;
35 int f_psr;
36 int f_fpiaddr;
37 int f_fpregs[8][3];
38 } fpregset_t;
39 #endif
41 struct mcontext {
42 int version;
43 int status_extension;
44 gregset_t gregs;
45 #ifdef CONFIG_FPU
46 fpregset_t fpregs;
47 #endif
50 #define MCONTEXT_VERSION 2
52 struct ucontext {
53 unsigned long uc_flags;
54 struct ucontext *uc_link;
55 stack_t uc_stack;
56 struct mcontext uc_mcontext;
57 #ifdef CONFIG_FPU
58 unsigned long uc_filler[80];
59 #endif
60 sigset_t uc_sigmask; /* mask last for extensibility */
63 #endif