pc: add memory hotplug handler to PC_MACHINE
[qemu/kevin.git] / linux-user / alpha / syscall.h
blobed13d9a71869865d6a1a5a71152836851216c016
1 /* default linux values for the selectors */
2 #define __USER_DS (1)
4 struct target_pt_regs {
5 abi_ulong r0;
6 abi_ulong r1;
7 abi_ulong r2;
8 abi_ulong r3;
9 abi_ulong r4;
10 abi_ulong r5;
11 abi_ulong r6;
12 abi_ulong r7;
13 abi_ulong r8;
14 abi_ulong r19;
15 abi_ulong r20;
16 abi_ulong r21;
17 abi_ulong r22;
18 abi_ulong r23;
19 abi_ulong r24;
20 abi_ulong r25;
21 abi_ulong r26;
22 abi_ulong r27;
23 abi_ulong r28;
24 abi_ulong hae;
25 /* JRP - These are the values provided to a0-a2 by PALcode */
26 abi_ulong trap_a0;
27 abi_ulong trap_a1;
28 abi_ulong trap_a2;
29 /* These are saved by PAL-code: */
30 abi_ulong ps;
31 abi_ulong pc;
32 abi_ulong gp;
33 abi_ulong r16;
34 abi_ulong r17;
35 abi_ulong r18;
36 /* Those is needed by qemu to temporary store the user stack pointer */
37 abi_ulong usp;
38 abi_ulong unique;
41 #define UNAME_MACHINE "alpha"
42 #define UNAME_MINIMUM_RELEASE "2.6.32"
44 #undef TARGET_EDEADLK
45 #define TARGET_EDEADLK 11
46 #undef TARGET_EAGAIN
47 #define TARGET_EAGAIN 35
48 #undef TARGET_EINPROGRESS
49 #define TARGET_EINPROGRESS 36
50 #undef TARGET_EALREADY
51 #define TARGET_EALREADY 37
52 #undef TARGET_ENOTSOCK
53 #define TARGET_ENOTSOCK 38
54 #undef TARGET_EDESTADDRREQ
55 #define TARGET_EDESTADDRREQ 39
56 #undef TARGET_EMSGSIZE
57 #define TARGET_EMSGSIZE 40
58 #undef TARGET_EPROTOTYPE
59 #define TARGET_EPROTOTYPE 41
60 #undef TARGET_ENOPROTOOPT
61 #define TARGET_ENOPROTOOPT 42
62 #undef TARGET_EPROTONOSUPPORT
63 #define TARGET_EPROTONOSUPPORT 43
64 #undef TARGET_ESOCKTNOSUPPORT
65 #define TARGET_ESOCKTNOSUPPORT 44
66 #undef TARGET_EOPNOTSUPP
67 #define TARGET_EOPNOTSUPP 45
68 #undef TARGET_EPFNOSUPPORT
69 #define TARGET_EPFNOSUPPORT 46
70 #undef TARGET_EAFNOSUPPORT
71 #define TARGET_EAFNOSUPPORT 47
72 #undef TARGET_EADDRINUSE
73 #define TARGET_EADDRINUSE 48
74 #undef TARGET_EADDRNOTAVAIL
75 #define TARGET_EADDRNOTAVAIL 49
76 #undef TARGET_ENETDOWN
77 #define TARGET_ENETDOWN 50
78 #undef TARGET_ENETUNREACH
79 #define TARGET_ENETUNREACH 51
80 #undef TARGET_ENETRESET
81 #define TARGET_ENETRESET 52
82 #undef TARGET_ECONNABORTED
83 #define TARGET_ECONNABORTED 53
84 #undef TARGET_ECONNRESET
85 #define TARGET_ECONNRESET 54
86 #undef TARGET_ENOBUFS
87 #define TARGET_ENOBUFS 55
88 #undef TARGET_EISCONN
89 #define TARGET_EISCONN 56
90 #undef TARGET_ENOTCONN
91 #define TARGET_ENOTCONN 57
92 #undef TARGET_ESHUTDOWN
93 #define TARGET_ESHUTDOWN 58
94 #undef TARGET_ETOOMANYREFS
95 #define TARGET_ETOOMANYREFS 59
96 #undef TARGET_ETIMEDOUT
97 #define TARGET_ETIMEDOUT 60
98 #undef TARGET_ECONNREFUSED
99 #define TARGET_ECONNREFUSED 61
100 #undef TARGET_ELOOP
101 #define TARGET_ELOOP 62
102 #undef TARGET_ENAMETOOLONG
103 #define TARGET_ENAMETOOLONG 63
104 #undef TARGET_EHOSTDOWN
105 #define TARGET_EHOSTDOWN 64
106 #undef TARGET_EHOSTUNREACH
107 #define TARGET_EHOSTUNREACH 65
108 #undef TARGET_ENOTEMPTY
109 #define TARGET_ENOTEMPTY 66
110 // Unused 67
111 #undef TARGET_EUSERS
112 #define TARGET_EUSERS 68
113 #undef TARGET_EDQUOT
114 #define TARGET_EDQUOT 69
115 #undef TARGET_ESTALE
116 #define TARGET_ESTALE 70
117 #undef TARGET_EREMOTE
118 #define TARGET_EREMOTE 71
119 // Unused 72-76
120 #undef TARGET_ENOLCK
121 #define TARGET_ENOLCK 77
122 #undef TARGET_ENOSYS
123 #define TARGET_ENOSYS 78
124 // Unused 79
125 #undef TARGET_ENOMSG
126 #define TARGET_ENOMSG 80
127 #undef TARGET_EIDRM
128 #define TARGET_EIDRM 81
129 #undef TARGET_ENOSR
130 #define TARGET_ENOSR 82
131 #undef TARGET_ETIME
132 #define TARGET_ETIME 83
133 #undef TARGET_EBADMSG
134 #define TARGET_EBADMSG 84
135 #undef TARGET_EPROTO
136 #define TARGET_EPROTO 85
137 #undef TARGET_ENODATA
138 #define TARGET_ENODATA 86
139 #undef TARGET_ENOSTR
140 #define TARGET_ENOSTR 87
141 #undef TARGET_ECHRNG
142 #define TARGET_ECHRNG 88
143 #undef TARGET_EL2NSYNC
144 #define TARGET_EL2NSYNC 89
145 #undef TARGET_EL3HLT
146 #define TARGET_EL3HLT 90
147 #undef TARGET_EL3RST
148 #define TARGET_EL3RST 91
149 #undef TARGET_ENOPKG
150 #define TARGET_ENOPKG 92
151 #undef TARGET_ELNRNG
152 #define TARGET_ELNRNG 93
153 #undef TARGET_EUNATCH
154 #define TARGET_EUNATCH 94
155 #undef TARGET_ENOCSI
156 #define TARGET_ENOCSI 95
157 #undef TARGET_EL2HLT
158 #define TARGET_EL2HLT 96
159 #undef TARGET_EBADE
160 #define TARGET_EBADE 97
161 #undef TARGET_EBADR
162 #define TARGET_EBADR 98
163 #undef TARGET_EXFULL
164 #define TARGET_EXFULL 99
165 #undef TARGET_ENOANO
166 #define TARGET_ENOANO 100
167 #undef TARGET_EBADRQC
168 #define TARGET_EBADRQC 101
169 #undef TARGET_EBADSLT
170 #define TARGET_EBADSLT 102
171 // Unused 103
172 #undef TARGET_EBFONT
173 #define TARGET_EBFONT 104
174 #undef TARGET_ENONET
175 #define TARGET_ENONET 105
176 #undef TARGET_ENOLINK
177 #define TARGET_ENOLINK 106
178 #undef TARGET_EADV
179 #define TARGET_EADV 107
180 #undef TARGET_ESRMNT
181 #define TARGET_ESRMNT 108
182 #undef TARGET_ECOMM
183 #define TARGET_ECOMM 109
184 #undef TARGET_EMULTIHOP
185 #define TARGET_EMULTIHOP 110
186 #undef TARGET_EDOTDOT
187 #define TARGET_EDOTDOT 111
188 #undef TARGET_EOVERFLOW
189 #define TARGET_EOVERFLOW 112
190 #undef TARGET_ENOTUNIQ
191 #define TARGET_ENOTUNIQ 113
192 #undef TARGET_EBADFD
193 #define TARGET_EBADFD 114
194 #undef TARGET_EREMCHG
195 #define TARGET_EREMCHG 115
196 #undef TARGET_EILSEQ
197 #define TARGET_EILSEQ 116
199 // Same as default 117-121
201 #undef TARGET_ELIBACC
202 #define TARGET_ELIBACC 122
203 #undef TARGET_ELIBBAD
204 #define TARGET_ELIBBAD 123
205 #undef TARGET_ELIBSCN
206 #define TARGET_ELIBSCN 124
207 #undef TARGET_ELIBMAX
208 #define TARGET_ELIBMAX 125
209 #undef TARGET_ELIBEXEC
210 #define TARGET_ELIBEXEC 126
211 #undef TARGET_ERESTART
212 #define TARGET_ERESTART 127
213 #undef TARGET_ESTRPIPE
214 #define TARGET_ESTRPIPE 128
215 #undef TARGET_ENOMEDIUM
216 #define TARGET_ENOMEDIUM 129
217 #undef TARGET_EMEDIUMTYPE
218 #define TARGET_EMEDIUMTYPE 130
219 #undef TARGET_ECANCELED
220 #define TARGET_ECANCELED 131
221 #undef TARGET_ENOKEY
222 #define TARGET_ENOKEY 132
223 #undef TARGET_EKEYEXPIRED
224 #define TARGET_EKEYEXPIRED 133
225 #undef TARGET_EKEYREVOKED
226 #define TARGET_EKEYREVOKED 134
227 #undef TARGET_EKEYREJECTED
228 #define TARGET_EKEYREJECTED 135
229 #undef TARGET_EOWNERDEAD
230 #define TARGET_EOWNERDEAD 136
231 #undef TARGET_ENOTRECOVERABLE
232 #define TARGET_ENOTRECOVERABLE 137
233 #undef TARGET_ERFKILL
234 #define TARGET_ERFKILL 138
236 // For sys_osf_getsysinfo
237 #define TARGET_GSI_UACPROC 8
238 #define TARGET_GSI_IEEE_FP_CONTROL 45
239 #define TARGET_GSI_IEEE_STATE_AT_SIGNAL 46
240 #define TARGET_GSI_PROC_TYPE 60
241 #define TARGET_GSI_GET_HWRPB 101
243 // For sys_ofs_setsysinfo
244 #define TARGET_SSI_NVPAIRS 1
245 #define TARGET_SSI_IEEE_FP_CONTROL 14
246 #define TARGET_SSI_IEEE_STATE_AT_SIGNAL 15
247 #define TARGET_SSI_IEEE_IGNORE_STATE_AT_SIGNAL 16
248 #define TARGET_SSI_IEEE_RAISE_EXCEPTION 1001
250 #define TARGET_SSIN_UACPROC 6
252 #define TARGET_UAC_NOPRINT 1
253 #define TARGET_UAC_NOFIX 2
254 #define TARGET_UAC_SIGBUS 4