Add Changelog ...
[glibc.git] / sysdeps / unix / sysv / linux / m68k / sys / reg.h
blob4145d5012ae612925b9af0a67f3698d9fbd0c781
1 /* Copyright (C) 1998 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 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.
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.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
18 #ifndef _SYS_REG_H
19 #define _SYS_REG_H 1
21 /* Index into an array of 4 byte integers returned from ptrace for
22 location of the users' stored general purpose registers. */
24 enum
26 PT_D1 = 0,
27 #define PT_D1 PT_D1
28 PT_D2 = 1,
29 #define PT_D2 PT_D2
30 PT_D3 = 2,
31 #define PT_D3 PT_D3
32 PT_D4 = 3,
33 #define PT_D4 PT_D4
34 PT_D5 = 4,
35 #define PT_D5 PT_D5
36 PT_D6 = 5,
37 #define PT_D6 PT_D6
38 PT_D7 = 6,
39 #define PT_D7 PT_D7
40 PT_A0 = 7,
41 #define PT_A0 PT_A0
42 PT_A1 = 8,
43 #define PT_A1 PT_A1
44 PT_A2 = 9,
45 #define PT_A2 PT_A2
46 PT_A3 = 10,
47 #define PT_A3 PT_A3
48 PT_A4 = 11,
49 #define PT_A4 PT_A4
50 PT_A5 = 12,
51 #define PT_A5 PT_A5
52 PT_A6 = 13,
53 #define PT_A6 PT_A6
54 PT_D0 = 14,
55 #define PT_D0 PT_D0
56 PT_USP = 15,
57 #define PT_USP PT_USP
58 PT_ORIG_D0 = 16,
59 #define PT_ORIG_D0 PT_ORIG_D0
60 PT_SR = 17,
61 #define PT_SR PT_SR
62 PT_PC = 18,
63 #define PT_PC PT_PC
65 #ifdef __mcoldfire__
66 PT_FP0 = 21,
67 PT_FP1 = 23,
68 PT_FP2 = 25,
69 PT_FP3 = 27,
70 PT_FP4 = 29,
71 PT_FP5 = 31,
72 PT_FP6 = 33,
73 PT_FP7 = 35,
74 #else
75 PT_FP0 = 21,
76 PT_FP1 = 24,
77 PT_FP2 = 27,
78 PT_FP3 = 30,
79 PT_FP4 = 33,
80 PT_FP5 = 36,
81 PT_FP6 = 39,
82 PT_FP7 = 42,
83 #endif
84 #define PT_FP0 PT_FP0
85 #define PT_FP1 PT_FP1
86 #define PT_FP2 PT_FP2
87 #define PT_FP3 PT_FP3
88 #define PT_FP4 PT_FP4
89 #define PT_FP5 PT_FP5
90 #define PT_FP6 PT_FP6
91 #define PT_FP7 PT_FP7
93 PT_FPCR = 45,
94 #define PT_FPCR PT_FPCR
95 PT_FPSR = 46,
96 #define PT_FPSR PT_FPSR
97 PT_FPIAR = 47
98 #define PT_FPIAR PT_FPIAR
101 #endif /* _SYS_REG_H */