~ubuntu-branches/ubuntu/precise/eglibc/precise-201308281639

« back to all changes in this revision

Viewing changes to ports/sysdeps/unix/sysv/linux/arm/sys/ucontext.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-02-08 01:58:09 UTC
  • mfrom: (1.5.3) (288.1.12 precise)
  • Revision ID: package-import@ubuntu.com-20120208015809-ulscst7uteq3e22z
Tags: 2.15~pre6-0ubuntu10
Merge from Debian (r5151, 2.13-26).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1998, 1999, 2001, 2006 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1998, 1999, 2001, 2006, 2011 Free Software Foundation, Inc.
2
2
   This file is part of the GNU C Library.
3
3
 
4
4
   The GNU C Library is free software; you can redistribute it and/or
23
23
 
24
24
#include <features.h>
25
25
#include <signal.h>
26
 
#include <sys/procfs.h>
27
26
 
28
27
/* We need the signal context definitions even if they are not used
29
28
   included in <signal.h>.  */
35
34
#define NGREG   18
36
35
 
37
36
/* Container for all general registers.  */
38
 
typedef elf_gregset_t gregset_t;
 
37
typedef greg_t gregset_t[NGREG];
39
38
 
40
39
/* Number of each register is the `gregset_t' array.  */
41
40
enum
42
41
{
43
 
  R0 = 0,
44
 
#define R0      R0
45
 
  R1 = 1,
46
 
#define R1      R1
47
 
  R2 = 2,
48
 
#define R2      R2
49
 
  R3 = 3,
50
 
#define R3      R3
51
 
  R4 = 4,
52
 
#define R4      R4
53
 
  R5 = 5,
54
 
#define R5      R5
55
 
  R6 = 6,
56
 
#define R6      R6
57
 
  R7 = 7,
58
 
#define R7      R7
59
 
  R8 = 8,
60
 
#define R8      R8
61
 
  R9 = 9,
62
 
#define R9      R9
63
 
  R10 = 10,
64
 
#define R10     R10
65
 
  R11 = 11,
66
 
#define R11     R11
67
 
  R12 = 12,
68
 
#define R12     R12
69
 
  R13 = 13,
70
 
#define R13     R13
71
 
  R14 = 14,
72
 
#define R14     R14
73
 
  R15 = 15
74
 
#define R15     R15
 
42
  REG_R0 = 0,
 
43
#define REG_R0  REG_R0
 
44
  REG_R1 = 1,
 
45
#define REG_R1  REG_R1
 
46
  REG_R2 = 2,
 
47
#define REG_R2  REG_R2
 
48
  REG_R3 = 3,
 
49
#define REG_R3  REG_R3
 
50
  REG_R4 = 4,
 
51
#define REG_R4  REG_R4
 
52
  REG_R5 = 5,
 
53
#define REG_R5  REG_R5
 
54
  REG_R6 = 6,
 
55
#define REG_R6  REG_R6
 
56
  REG_R7 = 7,
 
57
#define REG_R7  REG_R7
 
58
  REG_R8 = 8,
 
59
#define REG_R8  REG_R8
 
60
  REG_R9 = 9,
 
61
#define REG_R9  REG_R9
 
62
  REG_R10 = 10,
 
63
#define REG_R10 REG_R10
 
64
  REG_R11 = 11,
 
65
#define REG_R11 REG_R11
 
66
  REG_R12 = 12,
 
67
#define REG_R12 REG_R12
 
68
  REG_R13 = 13,
 
69
#define REG_R13 REG_R13
 
70
  REG_R14 = 14,
 
71
#define REG_R14 REG_R14
 
72
  REG_R15 = 15
 
73
#define REG_R15 REG_R15
75
74
};
76
75
 
 
76
struct _libc_fpstate
 
77
{
 
78
  struct
 
79
  {
 
80
    unsigned int sign1:1;
 
81
    unsigned int unused:15;
 
82
    unsigned int sign2:1;
 
83
    unsigned int exponent:14;
 
84
    unsigned int j:1;
 
85
    unsigned int mantissa1:31;
 
86
    unsigned int mantissa0:32;
 
87
  } fpregs[8];
 
88
  unsigned int fpsr:32;
 
89
  unsigned int fpcr:32;
 
90
  unsigned char ftype[8];
 
91
  unsigned int init_flag;
 
92
};
77
93
/* Structure to describe FPU registers.  */
78
 
typedef elf_fpregset_t  fpregset_t;
 
94
typedef struct _libc_fpstate fpregset_t;
79
95
 
80
96
/* Context to describe whole processor state.  This only describes
81
97
   the core registers; coprocessor registers get saved elsewhere