1 #ifndef ALPHA_TARGET_SYSCALL_H
2 #define ALPHA_TARGET_SYSCALL_H
4 /* default linux values for the selectors */
7 struct target_pt_regs
{
28 /* JRP - These are the values provided to a0-a2 by PALcode */
32 /* These are saved by PAL-code: */
39 /* Those is needed by qemu to temporary store the user stack pointer */
44 #define UNAME_MACHINE "alpha"
45 #define UNAME_MINIMUM_RELEASE "2.6.32"
48 #define TARGET_EDEADLK 11
50 #define TARGET_EAGAIN 35
51 #undef TARGET_EINPROGRESS
52 #define TARGET_EINPROGRESS 36
53 #undef TARGET_EALREADY
54 #define TARGET_EALREADY 37
55 #undef TARGET_ENOTSOCK
56 #define TARGET_ENOTSOCK 38
57 #undef TARGET_EDESTADDRREQ
58 #define TARGET_EDESTADDRREQ 39
59 #undef TARGET_EMSGSIZE
60 #define TARGET_EMSGSIZE 40
61 #undef TARGET_EPROTOTYPE
62 #define TARGET_EPROTOTYPE 41
63 #undef TARGET_ENOPROTOOPT
64 #define TARGET_ENOPROTOOPT 42
65 #undef TARGET_EPROTONOSUPPORT
66 #define TARGET_EPROTONOSUPPORT 43
67 #undef TARGET_ESOCKTNOSUPPORT
68 #define TARGET_ESOCKTNOSUPPORT 44
69 #undef TARGET_EOPNOTSUPP
70 #define TARGET_EOPNOTSUPP 45
71 #undef TARGET_EPFNOSUPPORT
72 #define TARGET_EPFNOSUPPORT 46
73 #undef TARGET_EAFNOSUPPORT
74 #define TARGET_EAFNOSUPPORT 47
75 #undef TARGET_EADDRINUSE
76 #define TARGET_EADDRINUSE 48
77 #undef TARGET_EADDRNOTAVAIL
78 #define TARGET_EADDRNOTAVAIL 49
79 #undef TARGET_ENETDOWN
80 #define TARGET_ENETDOWN 50
81 #undef TARGET_ENETUNREACH
82 #define TARGET_ENETUNREACH 51
83 #undef TARGET_ENETRESET
84 #define TARGET_ENETRESET 52
85 #undef TARGET_ECONNABORTED
86 #define TARGET_ECONNABORTED 53
87 #undef TARGET_ECONNRESET
88 #define TARGET_ECONNRESET 54
90 #define TARGET_ENOBUFS 55
92 #define TARGET_EISCONN 56
93 #undef TARGET_ENOTCONN
94 #define TARGET_ENOTCONN 57
95 #undef TARGET_ESHUTDOWN
96 #define TARGET_ESHUTDOWN 58
97 #undef TARGET_ETOOMANYREFS
98 #define TARGET_ETOOMANYREFS 59
99 #undef TARGET_ETIMEDOUT
100 #define TARGET_ETIMEDOUT 60
101 #undef TARGET_ECONNREFUSED
102 #define TARGET_ECONNREFUSED 61
104 #define TARGET_ELOOP 62
105 #undef TARGET_ENAMETOOLONG
106 #define TARGET_ENAMETOOLONG 63
107 #undef TARGET_EHOSTDOWN
108 #define TARGET_EHOSTDOWN 64
109 #undef TARGET_EHOSTUNREACH
110 #define TARGET_EHOSTUNREACH 65
111 #undef TARGET_ENOTEMPTY
112 #define TARGET_ENOTEMPTY 66
115 #define TARGET_EUSERS 68
117 #define TARGET_EDQUOT 69
119 #define TARGET_ESTALE 70
120 #undef TARGET_EREMOTE
121 #define TARGET_EREMOTE 71
124 #define TARGET_ENOLCK 77
126 #define TARGET_ENOSYS 78
129 #define TARGET_ENOMSG 80
131 #define TARGET_EIDRM 81
133 #define TARGET_ENOSR 82
135 #define TARGET_ETIME 83
136 #undef TARGET_EBADMSG
137 #define TARGET_EBADMSG 84
139 #define TARGET_EPROTO 85
140 #undef TARGET_ENODATA
141 #define TARGET_ENODATA 86
143 #define TARGET_ENOSTR 87
145 #define TARGET_ECHRNG 88
146 #undef TARGET_EL2NSYNC
147 #define TARGET_EL2NSYNC 89
149 #define TARGET_EL3HLT 90
151 #define TARGET_EL3RST 91
153 #define TARGET_ENOPKG 92
155 #define TARGET_ELNRNG 93
156 #undef TARGET_EUNATCH
157 #define TARGET_EUNATCH 94
159 #define TARGET_ENOCSI 95
161 #define TARGET_EL2HLT 96
163 #define TARGET_EBADE 97
165 #define TARGET_EBADR 98
167 #define TARGET_EXFULL 99
169 #define TARGET_ENOANO 100
170 #undef TARGET_EBADRQC
171 #define TARGET_EBADRQC 101
172 #undef TARGET_EBADSLT
173 #define TARGET_EBADSLT 102
176 #define TARGET_EBFONT 104
178 #define TARGET_ENONET 105
179 #undef TARGET_ENOLINK
180 #define TARGET_ENOLINK 106
182 #define TARGET_EADV 107
184 #define TARGET_ESRMNT 108
186 #define TARGET_ECOMM 109
187 #undef TARGET_EMULTIHOP
188 #define TARGET_EMULTIHOP 110
189 #undef TARGET_EDOTDOT
190 #define TARGET_EDOTDOT 111
191 #undef TARGET_EOVERFLOW
192 #define TARGET_EOVERFLOW 112
193 #undef TARGET_ENOTUNIQ
194 #define TARGET_ENOTUNIQ 113
196 #define TARGET_EBADFD 114
197 #undef TARGET_EREMCHG
198 #define TARGET_EREMCHG 115
200 #define TARGET_EILSEQ 116
202 // Same as default 117-121
204 #undef TARGET_ELIBACC
205 #define TARGET_ELIBACC 122
206 #undef TARGET_ELIBBAD
207 #define TARGET_ELIBBAD 123
208 #undef TARGET_ELIBSCN
209 #define TARGET_ELIBSCN 124
210 #undef TARGET_ELIBMAX
211 #define TARGET_ELIBMAX 125
212 #undef TARGET_ELIBEXEC
213 #define TARGET_ELIBEXEC 126
214 #undef TARGET_ERESTART
215 #define TARGET_ERESTART 127
216 #undef TARGET_ESTRPIPE
217 #define TARGET_ESTRPIPE 128
218 #undef TARGET_ENOMEDIUM
219 #define TARGET_ENOMEDIUM 129
220 #undef TARGET_EMEDIUMTYPE
221 #define TARGET_EMEDIUMTYPE 130
222 #undef TARGET_ECANCELED
223 #define TARGET_ECANCELED 131
225 #define TARGET_ENOKEY 132
226 #undef TARGET_EKEYEXPIRED
227 #define TARGET_EKEYEXPIRED 133
228 #undef TARGET_EKEYREVOKED
229 #define TARGET_EKEYREVOKED 134
230 #undef TARGET_EKEYREJECTED
231 #define TARGET_EKEYREJECTED 135
232 #undef TARGET_EOWNERDEAD
233 #define TARGET_EOWNERDEAD 136
234 #undef TARGET_ENOTRECOVERABLE
235 #define TARGET_ENOTRECOVERABLE 137
236 #undef TARGET_ERFKILL
237 #define TARGET_ERFKILL 138
238 #undef TARGET_EHWPOISON
239 #define TARGET_EHWPOISON 139
241 // For sys_osf_getsysinfo
242 #define TARGET_GSI_UACPROC 8
243 #define TARGET_GSI_IEEE_FP_CONTROL 45
244 #define TARGET_GSI_IEEE_STATE_AT_SIGNAL 46
245 #define TARGET_GSI_PROC_TYPE 60
246 #define TARGET_GSI_GET_HWRPB 101
248 // For sys_ofs_setsysinfo
249 #define TARGET_SSI_NVPAIRS 1
250 #define TARGET_SSI_IEEE_FP_CONTROL 14
251 #define TARGET_SSI_IEEE_STATE_AT_SIGNAL 15
252 #define TARGET_SSI_IEEE_IGNORE_STATE_AT_SIGNAL 16
253 #define TARGET_SSI_IEEE_RAISE_EXCEPTION 1001
255 #define TARGET_SSIN_UACPROC 6
257 #define TARGET_UAC_NOPRINT 1
258 #define TARGET_UAC_NOFIX 2
259 #define TARGET_UAC_SIGBUS 4
260 #define TARGET_MINSIGSTKSZ 4096
261 #define TARGET_MLOCKALL_MCL_CURRENT 0x2000
262 #define TARGET_MLOCKALL_MCL_FUTURE 0x4000
264 #endif /* ALPHA_TARGET_SYSCALL_H */