1 #ifndef HPPA_TARGET_SYSCALL_H
2 #define HPPA_TARGET_SYSCALL_H
3 
4 struct target_pt_regs {
5     target_ulong gr[32];
6     uint64_t     fr[32];
7     target_ulong sr[8];
8     target_ulong iasq[2];
9     target_ulong iaoq[2];
10     target_ulong cr27;
11     target_ulong __pad0;
12     target_ulong orig_r28;
13     target_ulong ksp;
14     target_ulong kpc;
15     target_ulong sar;
16     target_ulong iir;
17     target_ulong isr;
18     target_ulong ior;
19     target_ulong ipsw;
20 };
21 
22 #define UNAME_MACHINE "parisc"
23 #define UNAME_MINIMUM_RELEASE "2.6.32"
24 #define TARGET_CLONE_BACKWARDS
25 #define TARGET_MINSIGSTKSZ       2048
26 #define TARGET_MCL_CURRENT 1
27 #define TARGET_MCL_FUTURE  2
28 #define TARGET_MCL_ONFAULT 4
29 
30 #undef  TARGET_ENOMSG
31 #define TARGET_ENOMSG          35
32 #undef  TARGET_EIDRM
33 #define TARGET_EIDRM           36
34 #undef  TARGET_ECHRNG
35 #define TARGET_ECHRNG          37
36 #undef  TARGET_EL2NSYNC
37 #define TARGET_EL2NSYNC        38
38 #undef  TARGET_EL3HLT
39 #define TARGET_EL3HLT          39
40 #undef  TARGET_EL3RST
41 #define TARGET_EL3RST          40
42 #undef  TARGET_ELNRNG
43 #define TARGET_ELNRNG          41
44 #undef  TARGET_EUNATCH
45 #define TARGET_EUNATCH         42
46 #undef  TARGET_ENOCSI
47 #define TARGET_ENOCSI          43
48 #undef  TARGET_EL2HLT
49 #define TARGET_EL2HLT          44
50 #undef  TARGET_EDEADLK
51 #define TARGET_EDEADLK         45
52 #undef  TARGET_ENOLCK
53 #define TARGET_ENOLCK          46
54 #undef  TARGET_EILSEQ
55 #define TARGET_EILSEQ          47
56 
57 #undef  TARGET_ENONET
58 #define TARGET_ENONET          50
59 #undef  TARGET_ENODATA
60 #define TARGET_ENODATA         51
61 #undef  TARGET_ETIME
62 #define TARGET_ETIME           52
63 #undef  TARGET_ENOSR
64 #define TARGET_ENOSR           53
65 #undef  TARGET_ENOSTR
66 #define TARGET_ENOSTR          54
67 #undef  TARGET_ENOPKG
68 #define TARGET_ENOPKG          55
69 
70 #undef  TARGET_ENOLINK
71 #define TARGET_ENOLINK         57
72 #undef  TARGET_EADV
73 #define TARGET_EADV            58
74 #undef  TARGET_ESRMNT
75 #define TARGET_ESRMNT          59
76 #undef  TARGET_ECOMM
77 #define TARGET_ECOMM           60
78 #undef  TARGET_EPROTO
79 #define TARGET_EPROTO          61
80 
81 #undef  TARGET_EMULTIHOP
82 #define TARGET_EMULTIHOP       64
83 
84 #undef  TARGET_EDOTDOT
85 #define TARGET_EDOTDOT         66
86 #undef  TARGET_EBADMSG
87 #define TARGET_EBADMSG         67
88 #undef  TARGET_EUSERS
89 #define TARGET_EUSERS          68
90 #undef  TARGET_EDQUOT
91 #define TARGET_EDQUOT          69
92 #undef  TARGET_ESTALE
93 #define TARGET_ESTALE          70
94 #undef  TARGET_EREMOTE
95 #define TARGET_EREMOTE         71
96 #undef  TARGET_EOVERFLOW
97 #define TARGET_EOVERFLOW       72
98 
99 #undef  TARGET_EBADE
100 #define TARGET_EBADE           160
101 #undef  TARGET_EBADR
102 #define TARGET_EBADR           161
103 #undef  TARGET_EXFULL
104 #define TARGET_EXFULL          162
105 #undef  TARGET_ENOANO
106 #define TARGET_ENOANO          163
107 #undef  TARGET_EBADRQC
108 #define TARGET_EBADRQC         164
109 #undef  TARGET_EBADSLT
110 #define TARGET_EBADSLT         165
111 #undef  TARGET_EBFONT
112 #define TARGET_EBFONT          166
113 #undef  TARGET_ENOTUNIQ
114 #define TARGET_ENOTUNIQ        167
115 #undef  TARGET_EBADFD
116 #define TARGET_EBADFD          168
117 #undef  TARGET_EREMCHG
118 #define TARGET_EREMCHG         169
119 #undef  TARGET_ELIBACC
120 #define TARGET_ELIBACC         170
121 #undef  TARGET_ELIBBAD
122 #define TARGET_ELIBBAD         171
123 #undef  TARGET_ELIBSCN
124 #define TARGET_ELIBSCN         172
125 #undef  TARGET_ELIBMAX
126 #define TARGET_ELIBMAX         173
127 #undef  TARGET_ELIBEXEC
128 #define TARGET_ELIBEXEC        174
129 #undef  TARGET_ERESTART
130 #define TARGET_ERESTART        175
131 #undef  TARGET_ESTRPIPE
132 #define TARGET_ESTRPIPE        176
133 #undef  TARGET_EUCLEAN
134 #define TARGET_EUCLEAN         177
135 #undef  TARGET_ENOTNAM
136 #define TARGET_ENOTNAM         178
137 #undef  TARGET_ENAVAIL
138 #define TARGET_ENAVAIL         179
139 #undef  TARGET_EISNAM
140 #define TARGET_EISNAM          180
141 #undef  TARGET_EREMOTEIO
142 #define TARGET_EREMOTEIO       181
143 #undef  TARGET_ENOMEDIUM
144 #define TARGET_ENOMEDIUM       182
145 #undef  TARGET_EMEDIUMTYPE
146 #define TARGET_EMEDIUMTYPE     183
147 #undef  TARGET_ENOKEY
148 #define TARGET_ENOKEY          184
149 #undef  TARGET_EKEYEXPIRED
150 #define TARGET_EKEYEXPIRED     185
151 #undef  TARGET_EKEYREVOKED
152 #define TARGET_EKEYREVOKED     186
153 #undef  TARGET_EKEYREJECTED
154 #define TARGET_EKEYREJECTED    187
155 
156 /* Never used in linux.  */
157 /* #define TARGET_ENOSYM          215 */
158 #undef  TARGET_ENOTSOCK
159 #define TARGET_ENOTSOCK        216
160 #undef  TARGET_EDESTADDRREQ
161 #define TARGET_EDESTADDRREQ    217
162 #undef  TARGET_EMSGSIZE
163 #define TARGET_EMSGSIZE        218
164 #undef  TARGET_EPROTOTYPE
165 #define TARGET_EPROTOTYPE      219
166 #undef  TARGET_ENOPROTOOPT
167 #define TARGET_ENOPROTOOPT     220
168 #undef  TARGET_EPROTONOSUPPORT
169 #define TARGET_EPROTONOSUPPORT 221
170 #undef  TARGET_ESOCKTNOSUPPORT
171 #define TARGET_ESOCKTNOSUPPORT 222
172 #undef  TARGET_EOPNOTSUPP
173 #define TARGET_EOPNOTSUPP      223
174 #undef  TARGET_EPFNOSUPPORT
175 #define TARGET_EPFNOSUPPORT    224
176 #undef  TARGET_EAFNOSUPPORT
177 #define TARGET_EAFNOSUPPORT    225
178 #undef  TARGET_EADDRINUSE
179 #define TARGET_EADDRINUSE      226
180 #undef  TARGET_EADDRNOTAVAIL
181 #define TARGET_EADDRNOTAVAIL   227
182 #undef  TARGET_ENETDOWN
183 #define TARGET_ENETDOWN        228
184 #undef  TARGET_ENETUNREACH
185 #define TARGET_ENETUNREACH     229
186 #undef  TARGET_ENETRESET
187 #define TARGET_ENETRESET       230
188 #undef  TARGET_ECONNABORTED
189 #define TARGET_ECONNABORTED    231
190 #undef  TARGET_ECONNRESET
191 #define TARGET_ECONNRESET      232
192 #undef  TARGET_ENOBUFS
193 #define TARGET_ENOBUFS         233
194 #undef  TARGET_EISCONN
195 #define TARGET_EISCONN         234
196 #undef  TARGET_ENOTCONN
197 #define TARGET_ENOTCONN        235
198 #undef  TARGET_ESHUTDOWN
199 #define TARGET_ESHUTDOWN       236
200 #undef  TARGET_ETOOMANYREFS
201 #define TARGET_ETOOMANYREFS    237
202 #undef  TARGET_ETIMEDOUT
203 #define TARGET_ETIMEDOUT       238
204 #undef  TARGET_ECONNREFUSED
205 #define TARGET_ECONNREFUSED    239
206 #define TARGET_EREMOTERELEASE  240
207 #undef  TARGET_EHOSTDOWN
208 #define TARGET_EHOSTDOWN       241
209 #undef  TARGET_EHOSTUNREACH
210 #define TARGET_EHOSTUNREACH    242
211 
212 #undef  TARGET_EALREADY
213 #define TARGET_EALREADY        244
214 #undef  TARGET_EINPROGRESS
215 #define TARGET_EINPROGRESS     245
216 #undef  TARGET_ENOTEMPTY
217 #define TARGET_ENOTEMPTY       247
218 #undef  TARGET_ENAMETOOLONG
219 #define TARGET_ENAMETOOLONG    248
220 #undef  TARGET_ELOOP
221 #define TARGET_ELOOP           249
222 #undef  TARGET_ENOSYS
223 #define TARGET_ENOSYS          251
224 
225 #undef  TARGET_ECANCELED
226 #define TARGET_ECANCELED       253
227 
228 #undef  TARGET_EOWNERDEAD
229 #define TARGET_EOWNERDEAD      254
230 #undef  TARGET_ENOTRECOVERABLE
231 #define TARGET_ENOTRECOVERABLE 255
232 
233 #undef  TARGET_ERFKILL
234 #define TARGET_ERFKILL         256
235 #undef  TARGET_EHWPOISON
236 #define TARGET_EHWPOISON       257
237 
238 #endif /* HPPA_TARGET_SYSCALL_H */
239