OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [sysdeps/] [linux/] [h8300/] [sys/] [ucontext.h] - Blame information for rev 1779

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
/* Copyright (C) 1997, 1999, 2001 Free Software Foundation, Inc.
2
   This file is part of the GNU C Library.
3
 
4
   The GNU C Library is free software; you can redistribute it and/or
5
   modify it under the terms of the GNU Lesser General Public
6
   License as published by the Free Software Foundation; either
7
   version 2.1 of the License, or (at your option) any later version.
8
 
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
   Lesser General Public License for more details.
13
 
14
   You should have received a copy of the GNU Lesser General Public
15
   License along with the GNU C Library; if not, write to the Free
16
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17
   02111-1307 USA.  */
18
 
19
/* H8/300 compliant context switching support.  */
20
 
21
#ifndef _SYS_UCONTEXT_H
22
#define _SYS_UCONTEXT_H 1
23
 
24
#include <features.h>
25
#include <signal.h>
26
 
27
typedef int greg_t;
28
 
29
/* Number of general registers.  */
30
#define NFPREG  8
31
 
32
/* Container for all general registers.  */
33
typedef greg_t gregset_t[NFPREG];
34
 
35
#ifdef __USE_GNU
36
/* Number of each register is the `gregset_t' array.  */
37
enum
38
{
39
  ER0 = 0,
40
#define ER0     ER0
41
  ER1 = 1,
42
#define ER1     ER1
43
  ER2 = 2,
44
#define ER2     ER2
45
  ER3 = 3,
46
#define ER3     ER3
47
  ER4 = 4,
48
#define ER4     ER4
49
  ER5 = 5,
50
#define ER5     ER5
51
  ER6 = 6,
52
#define ER6     ER6
53
  ER7 = 7,
54
#define ER7     ER7
55
};
56
#endif
57
 
58
/* Context to describe whole processor state.  */
59
typedef struct
60
  {
61
    gregset_t gregs;
62
  } mcontext_t;
63
 
64
/* Userlevel context.  */
65
typedef struct ucontext
66
  {
67
    unsigned long int uc_flags;
68
    struct ucontext *uc_link;
69
    stack_t uc_stack;
70
    mcontext_t uc_mcontext;
71
    __sigset_t uc_sigmask;
72
  } ucontext_t;
73
 
74
#endif
75
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.