xref: /qemu/linux-user/hppa/target_syscall.h (revision 6f651a6d)
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_EWOULDBLOCK
31 #define TARGET_EWOULDBLOCK     TARGET_EAGAIN /* Operation would block */
32 #undef  TARGET_ENOMSG
33 #define TARGET_ENOMSG          35
34 #undef  TARGET_EIDRM
35 #define TARGET_EIDRM           36
36 #undef  TARGET_ECHRNG
37 #define TARGET_ECHRNG          37
38 #undef  TARGET_EL2NSYNC
39 #define TARGET_EL2NSYNC        38
40 #undef  TARGET_EL3HLT
41 #define TARGET_EL3HLT          39
42 #undef  TARGET_EL3RST
43 #define TARGET_EL3RST          40
44 #undef  TARGET_ELNRNG
45 #define TARGET_ELNRNG          41
46 #undef  TARGET_EUNATCH
47 #define TARGET_EUNATCH         42
48 #undef  TARGET_ENOCSI
49 #define TARGET_ENOCSI          43
50 #undef  TARGET_EL2HLT
51 #define TARGET_EL2HLT          44
52 #undef  TARGET_EDEADLK
53 #define TARGET_EDEADLK         45
54 #undef  TARGET_ENOLCK
55 #define TARGET_ENOLCK          46
56 #undef  TARGET_EILSEQ
57 #define TARGET_EILSEQ          47
58 
59 #undef  TARGET_ENONET
60 #define TARGET_ENONET          50
61 #undef  TARGET_ENODATA
62 #define TARGET_ENODATA         51
63 #undef  TARGET_ETIME
64 #define TARGET_ETIME           52
65 #undef  TARGET_ENOSR
66 #define TARGET_ENOSR           53
67 #undef  TARGET_ENOSTR
68 #define TARGET_ENOSTR          54
69 #undef  TARGET_ENOPKG
70 #define TARGET_ENOPKG          55
71 
72 #undef  TARGET_ENOLINK
73 #define TARGET_ENOLINK         57
74 #undef  TARGET_EADV
75 #define TARGET_EADV            58
76 #undef  TARGET_ESRMNT
77 #define TARGET_ESRMNT          59
78 #undef  TARGET_ECOMM
79 #define TARGET_ECOMM           60
80 #undef  TARGET_EPROTO
81 #define TARGET_EPROTO          61
82 
83 #undef  TARGET_EMULTIHOP
84 #define TARGET_EMULTIHOP       64
85 
86 #undef  TARGET_EDOTDOT
87 #define TARGET_EDOTDOT         66
88 #undef  TARGET_EBADMSG
89 #define TARGET_EBADMSG         67
90 #undef  TARGET_EUSERS
91 #define TARGET_EUSERS          68
92 #undef  TARGET_EDQUOT
93 #define TARGET_EDQUOT          69
94 #undef  TARGET_ESTALE
95 #define TARGET_ESTALE          70
96 #undef  TARGET_EREMOTE
97 #define TARGET_EREMOTE         71
98 #undef  TARGET_EOVERFLOW
99 #define TARGET_EOVERFLOW       72
100 
101 #undef  TARGET_EBADE
102 #define TARGET_EBADE           160
103 #undef  TARGET_EBADR
104 #define TARGET_EBADR           161
105 #undef  TARGET_EXFULL
106 #define TARGET_EXFULL          162
107 #undef  TARGET_ENOANO
108 #define TARGET_ENOANO          163
109 #undef  TARGET_EBADRQC
110 #define TARGET_EBADRQC         164
111 #undef  TARGET_EBADSLT
112 #define TARGET_EBADSLT         165
113 #undef  TARGET_EBFONT
114 #define TARGET_EBFONT          166
115 #undef  TARGET_ENOTUNIQ
116 #define TARGET_ENOTUNIQ        167
117 #undef  TARGET_EBADFD
118 #define TARGET_EBADFD          168
119 #undef  TARGET_EREMCHG
120 #define TARGET_EREMCHG         169
121 #undef  TARGET_ELIBACC
122 #define TARGET_ELIBACC         170
123 #undef  TARGET_ELIBBAD
124 #define TARGET_ELIBBAD         171
125 #undef  TARGET_ELIBSCN
126 #define TARGET_ELIBSCN         172
127 #undef  TARGET_ELIBMAX
128 #define TARGET_ELIBMAX         173
129 #undef  TARGET_ELIBEXEC
130 #define TARGET_ELIBEXEC        174
131 #undef  TARGET_ERESTART
132 #define TARGET_ERESTART        175
133 #undef  TARGET_ESTRPIPE
134 #define TARGET_ESTRPIPE        176
135 #undef  TARGET_EUCLEAN
136 #define TARGET_EUCLEAN         177
137 #undef  TARGET_ENOTNAM
138 #define TARGET_ENOTNAM         178
139 #undef  TARGET_ENAVAIL
140 #define TARGET_ENAVAIL         179
141 #undef  TARGET_EISNAM
142 #define TARGET_EISNAM          180
143 #undef  TARGET_EREMOTEIO
144 #define TARGET_EREMOTEIO       181
145 #undef  TARGET_ENOMEDIUM
146 #define TARGET_ENOMEDIUM       182
147 #undef  TARGET_EMEDIUMTYPE
148 #define TARGET_EMEDIUMTYPE     183
149 #undef  TARGET_ENOKEY
150 #define TARGET_ENOKEY          184
151 #undef  TARGET_EKEYEXPIRED
152 #define TARGET_EKEYEXPIRED     185
153 #undef  TARGET_EKEYREVOKED
154 #define TARGET_EKEYREVOKED     186
155 #undef  TARGET_EKEYREJECTED
156 #define TARGET_EKEYREJECTED    187
157 
158 /* Never used in linux.  */
159 /* #define TARGET_ENOSYM          215 */
160 #undef  TARGET_ENOTSOCK
161 #define TARGET_ENOTSOCK        216
162 #undef  TARGET_EDESTADDRREQ
163 #define TARGET_EDESTADDRREQ    217
164 #undef  TARGET_EMSGSIZE
165 #define TARGET_EMSGSIZE        218
166 #undef  TARGET_EPROTOTYPE
167 #define TARGET_EPROTOTYPE      219
168 #undef  TARGET_ENOPROTOOPT
169 #define TARGET_ENOPROTOOPT     220
170 #undef  TARGET_EPROTONOSUPPORT
171 #define TARGET_EPROTONOSUPPORT 221
172 #undef  TARGET_ESOCKTNOSUPPORT
173 #define TARGET_ESOCKTNOSUPPORT 222
174 #undef  TARGET_EOPNOTSUPP
175 #define TARGET_EOPNOTSUPP      223
176 #undef  TARGET_EPFNOSUPPORT
177 #define TARGET_EPFNOSUPPORT    224
178 #undef  TARGET_EAFNOSUPPORT
179 #define TARGET_EAFNOSUPPORT    225
180 #undef  TARGET_EADDRINUSE
181 #define TARGET_EADDRINUSE      226
182 #undef  TARGET_EADDRNOTAVAIL
183 #define TARGET_EADDRNOTAVAIL   227
184 #undef  TARGET_ENETDOWN
185 #define TARGET_ENETDOWN        228
186 #undef  TARGET_ENETUNREACH
187 #define TARGET_ENETUNREACH     229
188 #undef  TARGET_ENETRESET
189 #define TARGET_ENETRESET       230
190 #undef  TARGET_ECONNABORTED
191 #define TARGET_ECONNABORTED    231
192 #undef  TARGET_ECONNRESET
193 #define TARGET_ECONNRESET      232
194 #undef  TARGET_ENOBUFS
195 #define TARGET_ENOBUFS         233
196 #undef  TARGET_EISCONN
197 #define TARGET_EISCONN         234
198 #undef  TARGET_ENOTCONN
199 #define TARGET_ENOTCONN        235
200 #undef  TARGET_ESHUTDOWN
201 #define TARGET_ESHUTDOWN       236
202 #undef  TARGET_ETOOMANYREFS
203 #define TARGET_ETOOMANYREFS    237
204 #undef  TARGET_ETIMEDOUT
205 #define TARGET_ETIMEDOUT       238
206 #undef  TARGET_ECONNREFUSED
207 #define TARGET_ECONNREFUSED    239
208 #define TARGET_EREMOTERELEASE  240
209 #undef  TARGET_EHOSTDOWN
210 #define TARGET_EHOSTDOWN       241
211 #undef  TARGET_EHOSTUNREACH
212 #define TARGET_EHOSTUNREACH    242
213 
214 #undef  TARGET_EALREADY
215 #define TARGET_EALREADY        244
216 #undef  TARGET_EINPROGRESS
217 #define TARGET_EINPROGRESS     245
218 #undef  TARGET_ENOTEMPTY
219 #define TARGET_ENOTEMPTY       247
220 #undef  TARGET_ENAMETOOLONG
221 #define TARGET_ENAMETOOLONG    248
222 #undef  TARGET_ELOOP
223 #define TARGET_ELOOP           249
224 #undef  TARGET_ENOSYS
225 #define TARGET_ENOSYS          251
226 
227 #undef  TARGET_ECANCELED
228 #define TARGET_ECANCELED       253
229 
230 #undef  TARGET_EOWNERDEAD
231 #define TARGET_EOWNERDEAD      254
232 #undef  TARGET_ENOTRECOVERABLE
233 #define TARGET_ENOTRECOVERABLE 255
234 
235 #undef  TARGET_ERFKILL
236 #define TARGET_ERFKILL         256
237 #undef  TARGET_EHWPOISON
238 #define TARGET_EHWPOISON       257
239 
240 #endif /* HPPA_TARGET_SYSCALL_H */
241