Revision 540635ba
b/Makefile | ||
---|---|---|
154 | 154 |
$(bindir)/qemu-ppc64 \ |
155 | 155 |
$(bindir)/qemu-mips \ |
156 | 156 |
$(bindir)/qemu-mipsel \ |
157 |
$(bindir)/qemu-mipsn32 \ |
|
158 |
$(bindir)/qemu-mipsn32el \ |
|
159 |
$(bindir)/qemu-mips64 \ |
|
160 |
$(bindir)/qemu-mips64el \ |
|
157 | 161 |
$(bindir)/qemu-alpha \ |
158 | 162 |
$(bindir)/qemu-m68k \ |
159 | 163 |
$(bindir)/qemu-sh4 \ |
b/Makefile.target | ||
---|---|---|
4 | 4 |
ifeq ($(TARGET_ARCH), x86_64) |
5 | 5 |
TARGET_BASE_ARCH:=i386 |
6 | 6 |
endif |
7 |
ifeq ($(TARGET_ARCH), mipsn32) |
|
8 |
TARGET_BASE_ARCH:=mips |
|
9 |
endif |
|
7 | 10 |
ifeq ($(TARGET_ARCH), mips64) |
8 | 11 |
TARGET_BASE_ARCH:=mips |
9 | 12 |
endif |
... | ... | |
50 | 53 |
TARGET_ARCH2=mipsel |
51 | 54 |
endif |
52 | 55 |
endif |
56 |
ifeq ($(TARGET_ARCH),mipsn32) |
|
57 |
ifneq ($(TARGET_WORDS_BIGENDIAN),yes) |
|
58 |
TARGET_ARCH2=mipsn32el |
|
59 |
endif |
|
60 |
endif |
|
53 | 61 |
ifeq ($(TARGET_ARCH),mips64) |
54 | 62 |
ifneq ($(TARGET_WORDS_BIGENDIAN),yes) |
55 | 63 |
TARGET_ARCH2=mips64el |
b/configure | ||
---|---|---|
931 | 931 |
[ "$target_cpu" = "ppc64" ] && target_bigendian=yes |
932 | 932 |
[ "$target_cpu" = "ppcemb" ] && target_bigendian=yes |
933 | 933 |
[ "$target_cpu" = "mips" ] && target_bigendian=yes |
934 |
[ "$target_cpu" = "mipsn32" ] && target_bigendian=yes |
|
934 | 935 |
[ "$target_cpu" = "mips64" ] && target_bigendian=yes |
935 | 936 |
[ "$target_cpu" = "sh4eb" ] && target_bigendian=yes |
936 | 937 |
[ "$target_cpu" = "m68k" ] && target_bigendian=yes |
... | ... | |
1042 | 1043 |
echo "TARGET_ARCH=mips" >> $config_mak |
1043 | 1044 |
echo "#define TARGET_ARCH \"mips\"" >> $config_h |
1044 | 1045 |
echo "#define TARGET_MIPS 1" >> $config_h |
1045 |
echo "CONFIG_SOFTFLOAT=yes" >> $config_mak |
|
1046 |
echo "#define CONFIG_SOFTFLOAT 1" >> $config_h |
|
1046 |
elif test "$target_cpu" = "mipsn32" -o "$target_cpu" = "mipsn32el" ; then |
|
1047 |
echo "TARGET_ARCH=mipsn32" >> $config_mak |
|
1048 |
echo "#define TARGET_ARCH \"mipsn32\"" >> $config_h |
|
1049 |
echo "#define TARGET_MIPS 1" >> $config_h |
|
1050 |
echo "#define TARGET_MIPSN32 1" >> $config_h |
|
1047 | 1051 |
elif test "$target_cpu" = "mips64" -o "$target_cpu" = "mips64el" ; then |
1048 | 1052 |
echo "TARGET_ARCH=mips64" >> $config_mak |
1049 | 1053 |
echo "#define TARGET_ARCH \"mips64\"" >> $config_h |
1050 | 1054 |
echo "#define TARGET_MIPS 1" >> $config_h |
1051 | 1055 |
echo "#define TARGET_MIPS64 1" >> $config_h |
1052 |
echo "CONFIG_SOFTFLOAT=yes" >> $config_mak |
|
1053 |
echo "#define CONFIG_SOFTFLOAT 1" >> $config_h |
|
1054 | 1056 |
elif test "$target_cpu" = "sh4" -o "$target_cpu" = "sh4eb" ; then |
1055 | 1057 |
echo "TARGET_ARCH=sh4" >> $config_mak |
1056 | 1058 |
echo "#define TARGET_ARCH \"sh4\"" >> $config_h |
... | ... | |
1090 | 1092 |
echo "#define CONFIG_DARWIN_USER 1" >> $config_h |
1091 | 1093 |
fi |
1092 | 1094 |
|
1093 |
if test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" -o "$target_cpu" = "sparc" -o "$target_cpu" = "sparc64" -o "$target_cpu" = "m68k"; then |
|
1095 |
if test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" -o "$target_cpu" = "sparc" -o "$target_cpu" = "sparc64" -o "$target_cpu" = "m68k" -o "$target_cpu" = "mips" -o "$target_cpu" = "mipsel" -o "$target_cpu" = "mipsn32" -o "$target_cpu" = "mipsn32el" -o "$target_cpu" = "mips64" -o "$target_cpu" = "mips64el"; then
|
|
1094 | 1096 |
echo "CONFIG_SOFTFLOAT=yes" >> $config_mak |
1095 | 1097 |
echo "#define CONFIG_SOFTFLOAT 1" >> $config_h |
1096 | 1098 |
fi |
b/linux-user/main.c | ||
---|---|---|
2145 | 2145 |
|
2146 | 2146 |
/* Choose and initialise CPU */ |
2147 | 2147 |
if (cpu_model == NULL) |
2148 |
#if defined(TARGET_MIPSN32) || defined(TARGET_MIPS64) |
|
2149 |
cpu_model = "20Kc"; |
|
2150 |
#else |
|
2148 | 2151 |
cpu_model = "24Kf"; |
2152 |
#endif |
|
2149 | 2153 |
mips_find_by_name(cpu_model, &def); |
2150 | 2154 |
if (def == NULL) |
2151 | 2155 |
cpu_abort(env, "Unable to find MIPS CPU definition\n"); |
b/linux-user/mips/syscall.h | ||
---|---|---|
3 | 3 |
stack during a system call. */ |
4 | 4 |
|
5 | 5 |
struct target_pt_regs { |
6 |
#if 1 |
|
7 | 6 |
/* Pad bytes for argument save space on the stack. */ |
8 | 7 |
target_ulong pad0[6]; |
9 |
#endif |
|
10 | 8 |
|
11 | 9 |
/* Saved main processor registers. */ |
12 | 10 |
target_ulong regs[32]; |
b/linux-user/mips/target_signal.h | ||
---|---|---|
6 | 6 |
/* this struct defines a stack used during syscall handling */ |
7 | 7 |
|
8 | 8 |
typedef struct target_sigaltstack { |
9 |
target_ulong ss_sp;
|
|
9 |
target_long ss_sp; |
|
10 | 10 |
target_ulong ss_size; |
11 | 11 |
target_long ss_flags; |
12 | 12 |
} target_stack_t; |
b/linux-user/mips64/syscall.h | ||
---|---|---|
1 |
|
|
2 |
/* this struct defines the way the registers are stored on the |
|
3 |
stack during a system call. */ |
|
4 |
|
|
5 |
struct target_pt_regs { |
|
6 |
/* Saved main processor registers. */ |
|
7 |
target_ulong regs[32]; |
|
8 |
|
|
9 |
/* Saved special registers. */ |
|
10 |
target_ulong cp0_status; |
|
11 |
target_ulong lo; |
|
12 |
target_ulong hi; |
|
13 |
target_ulong cp0_badvaddr; |
|
14 |
target_ulong cp0_cause; |
|
15 |
target_ulong cp0_epc; |
|
16 |
}; |
|
17 |
|
|
18 |
/* Target errno definitions taken from asm-mips/errno.h */ |
|
19 |
#undef TARGET_ENOMSG |
|
20 |
#define TARGET_ENOMSG 35 /* Identifier removed */ |
|
21 |
#undef TARGET_EIDRM |
|
22 |
#define TARGET_EIDRM 36 /* Identifier removed */ |
|
23 |
#undef TARGET_ECHRNG |
|
24 |
#define TARGET_ECHRNG 37 /* Channel number out of range */ |
|
25 |
#undef TARGET_EL2NSYNC |
|
26 |
#define TARGET_EL2NSYNC 38 /* Level 2 not synchronized */ |
|
27 |
#undef TARGET_EL3HLT |
|
28 |
#define TARGET_EL3HLT 39 /* Level 3 halted */ |
|
29 |
#undef TARGET_EL3RST |
|
30 |
#define TARGET_EL3RST 40 /* Level 3 reset */ |
|
31 |
#undef TARGET_ELNRNG |
|
32 |
#define TARGET_ELNRNG 41 /* Link number out of range */ |
|
33 |
#undef TARGET_EUNATCH |
|
34 |
#define TARGET_EUNATCH 42 /* Protocol driver not attached */ |
|
35 |
#undef TARGET_ENOCSI |
|
36 |
#define TARGET_ENOCSI 43 /* No CSI structure available */ |
|
37 |
#undef TARGET_EL2HLT |
|
38 |
#define TARGET_EL2HLT 44 /* Level 2 halted */ |
|
39 |
#undef TARGET_EDEADLK |
|
40 |
#define TARGET_EDEADLK 45 /* Resource deadlock would occur */ |
|
41 |
#undef TARGET_ENOLCK |
|
42 |
#define TARGET_ENOLCK 46 /* No record locks available */ |
|
43 |
#undef TARGET_EBADE |
|
44 |
#define TARGET_EBADE 50 /* Invalid exchange */ |
|
45 |
#undef TARGET_EBADR |
|
46 |
#define TARGET_EBADR 51 /* Invalid request descriptor */ |
|
47 |
#undef TARGET_EXFULL |
|
48 |
#define TARGET_EXFULL 52 /* TARGET_Exchange full */ |
|
49 |
#undef TARGET_ENOANO |
|
50 |
#define TARGET_ENOANO 53 /* No anode */ |
|
51 |
#undef TARGET_EBADRQC |
|
52 |
#define TARGET_EBADRQC 54 /* Invalid request code */ |
|
53 |
#undef TARGET_EBADSLT |
|
54 |
#define TARGET_EBADSLT 55 /* Invalid slot */ |
|
55 |
#undef TARGET_EDEADLOCK |
|
56 |
#define TARGET_EDEADLOCK 56 /* File locking deadlock error */ |
|
57 |
#undef TARGET_EBFONT |
|
58 |
#define TARGET_EBFONT 59 /* Bad font file format */ |
|
59 |
#undef TARGET_ENOSTR |
|
60 |
#define TARGET_ENOSTR 60 /* Device not a stream */ |
|
61 |
#undef TARGET_ENODATA |
|
62 |
#define TARGET_ENODATA 61 /* No data available */ |
|
63 |
#undef TARGET_ETIME |
|
64 |
#define TARGET_ETIME 62 /* Timer expired */ |
|
65 |
#undef TARGET_ENOSR |
|
66 |
#define TARGET_ENOSR 63 /* Out of streams resources */ |
|
67 |
#undef TARGET_ENONET |
|
68 |
#define TARGET_ENONET 64 /* Machine is not on the network */ |
|
69 |
#undef TARGET_ENOPKG |
|
70 |
#define TARGET_ENOPKG 65 /* Package not installed */ |
|
71 |
#undef TARGET_EREMOTE |
|
72 |
#define TARGET_EREMOTE 66 /* Object is remote */ |
|
73 |
#undef TARGET_ENOLINK |
|
74 |
#define TARGET_ENOLINK 67 /* Link has been severed */ |
|
75 |
#undef TARGET_EADV |
|
76 |
#define TARGET_EADV 68 /* Advertise error */ |
|
77 |
#undef TARGET_ESRMNT |
|
78 |
#define TARGET_ESRMNT 69 /* Srmount error */ |
|
79 |
#undef TARGET_ECOMM |
|
80 |
#define TARGET_ECOMM 70 /* Communication error on send */ |
|
81 |
#undef TARGET_EPROTO |
|
82 |
#define TARGET_EPROTO 71 /* Protocol error */ |
|
83 |
#undef TARGET_EDOTDOT |
|
84 |
#define TARGET_EDOTDOT 73 /* RFS specific error */ |
|
85 |
#undef TARGET_EMULTIHOP |
|
86 |
#define TARGET_EMULTIHOP 74 /* Multihop attempted */ |
|
87 |
#undef TARGET_EBADMSG |
|
88 |
#define TARGET_EBADMSG 77 /* Not a data message */ |
|
89 |
#undef TARGET_ENAMETOOLONG |
|
90 |
#define TARGET_ENAMETOOLONG 78 /* File name too long */ |
|
91 |
#undef TARGET_EOVERFLOW |
|
92 |
#define TARGET_EOVERFLOW 79 /* Value too large for defined data type */ |
|
93 |
#undef TARGET_ENOTUNIQ |
|
94 |
#define TARGET_ENOTUNIQ 80 /* Name not unique on network */ |
|
95 |
#undef TARGET_EBADFD |
|
96 |
#define TARGET_EBADFD 81 /* File descriptor in bad state */ |
|
97 |
#undef TARGET_EREMCHG |
|
98 |
#define TARGET_EREMCHG 82 /* Remote address changed */ |
|
99 |
#undef TARGET_ELIBACC |
|
100 |
#define TARGET_ELIBACC 83 /* Can not access a needed shared library */ |
|
101 |
#undef TARGET_ELIBBAD |
|
102 |
#define TARGET_ELIBBAD 84 /* Accessing a corrupted shared library */ |
|
103 |
#undef TARGET_ELIBSCN |
|
104 |
#define TARGET_ELIBSCN 85 /* .lib section in a.out corrupted */ |
|
105 |
#undef TARGET_ELIBMAX |
|
106 |
#define TARGET_ELIBMAX 86 /* Attempting to link in too many shared libraries */ |
|
107 |
#undef TARGET_ELIBEXEC |
|
108 |
#define TARGET_ELIBEXEC 87 /* Cannot exec a shared library directly */ |
|
109 |
#undef TARGET_EILSEQ |
|
110 |
#define TARGET_EILSEQ 88 /* Illegal byte sequence */ |
|
111 |
#undef TARGET_ENOSYS |
|
112 |
#define TARGET_ENOSYS 89 /* Function not implemented */ |
|
113 |
#undef TARGET_ELOOP |
|
114 |
#define TARGET_ELOOP 90 /* Too many symbolic links encountered */ |
|
115 |
#undef TARGET_ERESTART |
|
116 |
#define TARGET_ERESTART 91 /* Interrupted system call should be restarted */ |
|
117 |
#undef TARGET_ESTRPIPE |
|
118 |
#define TARGET_ESTRPIPE 92 /* Streams pipe error */ |
|
119 |
#undef TARGET_ENOTEMPTY |
|
120 |
#define TARGET_ENOTEMPTY 93 /* Directory not empty */ |
|
121 |
#undef TARGET_EUSERS |
|
122 |
#define TARGET_EUSERS 94 /* Too many users */ |
|
123 |
#undef TARGET_ENOTSOCK |
|
124 |
#define TARGET_ENOTSOCK 95 /* Socket operation on non-socket */ |
|
125 |
#undef TARGET_EDESTADDRREQ |
|
126 |
#define TARGET_EDESTADDRREQ 96 /* Destination address required */ |
|
127 |
#undef TARGET_EMSGSIZE |
|
128 |
#define TARGET_EMSGSIZE 97 /* Message too long */ |
|
129 |
#undef TARGET_EPROTOTYPE |
|
130 |
#define TARGET_EPROTOTYPE 98 /* Protocol wrong type for socket */ |
|
131 |
#undef TARGET_ENOPROTOOPT |
|
132 |
#define TARGET_ENOPROTOOPT 99 /* Protocol not available */ |
|
133 |
#undef TARGET_EPROTONOSUPPORT |
|
134 |
#define TARGET_EPROTONOSUPPORT 120 /* Protocol not supported */ |
|
135 |
#undef TARGET_ESOCKTNOSUPPORT |
|
136 |
#define TARGET_ESOCKTNOSUPPORT 121 /* Socket type not supported */ |
|
137 |
#undef TARGET_EOPNOTSUPP |
|
138 |
#define TARGET_EOPNOTSUPP 122 /* Operation not supported on transport endpoint */ |
|
139 |
#undef TARGET_EPFNOSUPPORT |
|
140 |
#define TARGET_EPFNOSUPPORT 123 /* Protocol family not supported */ |
|
141 |
#undef TARGET_EAFNOSUPPORT |
|
142 |
#define TARGET_EAFNOSUPPORT 124 /* Address family not supported by protocol */ |
|
143 |
#undef TARGET_EADDRINUSE |
|
144 |
#define TARGET_EADDRINUSE 125 /* Address already in use */ |
|
145 |
#undef TARGET_EADDRNOTAVAIL |
|
146 |
#define TARGET_EADDRNOTAVAIL 126 /* Cannot assign requested address */ |
|
147 |
#undef TARGET_ENETDOWN |
|
148 |
#define TARGET_ENETDOWN 127 /* Network is down */ |
|
149 |
#undef TARGET_ENETUNREACH |
|
150 |
#define TARGET_ENETUNREACH 128 /* Network is unreachable */ |
|
151 |
#undef TARGET_ENETRESET |
|
152 |
#define TARGET_ENETRESET 129 /* Network dropped connection because of reset */ |
|
153 |
#undef TARGET_ECONNABORTED |
|
154 |
#define TARGET_ECONNABORTED 130 /* Software caused connection abort */ |
|
155 |
#undef TARGET_ECONNRESET |
|
156 |
#define TARGET_ECONNRESET 131 /* Connection reset by peer */ |
|
157 |
#undef TARGET_ENOBUFS |
|
158 |
#define TARGET_ENOBUFS 132 /* No buffer space available */ |
|
159 |
#undef TARGET_EISCONN |
|
160 |
#define TARGET_EISCONN 133 /* Transport endpoint is already connected */ |
|
161 |
#undef TARGET_ENOTCONN |
|
162 |
#define TARGET_ENOTCONN 134 /* Transport endpoint is not connected */ |
|
163 |
#undef TARGET_EUCLEAN |
|
164 |
#define TARGET_EUCLEAN 135 /* Structure needs cleaning */ |
|
165 |
#undef TARGET_ENOTNAM |
|
166 |
#define TARGET_ENOTNAM 137 /* Not a XENIX named type file */ |
|
167 |
#undef TARGET_ENAVAIL |
|
168 |
#define TARGET_ENAVAIL 138 /* No XENIX semaphores available */ |
|
169 |
#undef TARGET_EISNAM |
|
170 |
#define TARGET_EISNAM 139 /* Is a named type file */ |
|
171 |
#undef TARGET_EREMOTEIO |
|
172 |
#define TARGET_EREMOTEIO 140 /* Remote I/O error */ |
|
173 |
#undef TARGET_EINIT |
|
174 |
#define TARGET_EINIT 141 /* Reserved */ |
|
175 |
#undef TARGET_EREMDEV |
|
176 |
#define TARGET_EREMDEV 142 /* TARGET_Error 142 */ |
|
177 |
#undef TARGET_ESHUTDOWN |
|
178 |
#define TARGET_ESHUTDOWN 143 /* Cannot send after transport endpoint shutdown */ |
|
179 |
#undef TARGET_ETOOMANYREFS |
|
180 |
#define TARGET_ETOOMANYREFS 144 /* Too many references: cannot splice */ |
|
181 |
#undef TARGET_ETIMEDOUT |
|
182 |
#define TARGET_ETIMEDOUT 145 /* Connection timed out */ |
|
183 |
#undef TARGET_ECONNREFUSED |
|
184 |
#define TARGET_ECONNREFUSED 146 /* Connection refused */ |
|
185 |
#undef TARGET_EHOSTDOWN |
|
186 |
#define TARGET_EHOSTDOWN 147 /* Host is down */ |
|
187 |
#undef TARGET_EHOSTUNREACH |
|
188 |
#define TARGET_EHOSTUNREACH 148 /* No route to host */ |
|
189 |
#undef TARGET_EALREADY |
|
190 |
#define TARGET_EALREADY 149 /* Operation already in progress */ |
|
191 |
#undef TARGET_EINPROGRESS |
|
192 |
#define TARGET_EINPROGRESS 150 /* Operation now in progress */ |
|
193 |
#undef TARGET_ESTALE |
|
194 |
#define TARGET_ESTALE 151 /* Stale NFS file handle */ |
|
195 |
#undef TARGET_ECANCELED |
|
196 |
#define TARGET_ECANCELED 158 /* AIO operation canceled */ |
|
197 |
/* |
|
198 |
* These error are Linux extensions. |
|
199 |
*/ |
|
200 |
#undef TARGET_ENOMEDIUM |
|
201 |
#define TARGET_ENOMEDIUM 159 /* No medium found */ |
|
202 |
#undef TARGET_EMEDIUMTYPE |
|
203 |
#define TARGET_EMEDIUMTYPE 160 /* Wrong medium type */ |
|
204 |
#undef TARGET_ENOKEY |
|
205 |
#define TARGET_ENOKEY 161 /* Required key not available */ |
|
206 |
#undef TARGET_EKEYEXPIRED |
|
207 |
#define TARGET_EKEYEXPIRED 162 /* Key has expired */ |
|
208 |
#undef TARGET_EKEYREVOKED |
|
209 |
#define TARGET_EKEYREVOKED 163 /* Key has been revoked */ |
|
210 |
#undef TARGET_EKEYREJECTED |
|
211 |
#define TARGET_EKEYREJECTED 164 /* Key was rejected by service */ |
|
212 |
|
|
213 |
/* for robust mutexes */ |
|
214 |
#undef TARGET_EOWNERDEAD |
|
215 |
#define TARGET_EOWNERDEAD 165 /* Owner died */ |
|
216 |
#undef TARGET_ENOTRECOVERABLE |
|
217 |
#define TARGET_ENOTRECOVERABLE 166 /* State not recoverable */ |
|
218 |
|
|
219 |
|
|
220 |
|
|
221 |
#define UNAME_MACHINE "mips64" |
b/linux-user/mips64/syscall_nr.h | ||
---|---|---|
1 |
/* |
|
2 |
* Linux 64-bit syscalls are in the range from 5000 to 5999. |
|
3 |
*/ |
|
4 |
#define TARGET_NR_Linux 5000 |
|
5 |
#define TARGET_NR_read (TARGET_NR_Linux + 0) |
|
6 |
#define TARGET_NR_write (TARGET_NR_Linux + 1) |
|
7 |
#define TARGET_NR_open (TARGET_NR_Linux + 2) |
|
8 |
#define TARGET_NR_close (TARGET_NR_Linux + 3) |
|
9 |
#define TARGET_NR_stat (TARGET_NR_Linux + 4) |
|
10 |
#define TARGET_NR_fstat (TARGET_NR_Linux + 5) |
|
11 |
#define TARGET_NR_lstat (TARGET_NR_Linux + 6) |
|
12 |
#define TARGET_NR_poll (TARGET_NR_Linux + 7) |
|
13 |
#define TARGET_NR_lseek (TARGET_NR_Linux + 8) |
|
14 |
#define TARGET_NR_mmap (TARGET_NR_Linux + 9) |
|
15 |
#define TARGET_NR_mprotect (TARGET_NR_Linux + 10) |
|
16 |
#define TARGET_NR_munmap (TARGET_NR_Linux + 11) |
|
17 |
#define TARGET_NR_brk (TARGET_NR_Linux + 12) |
|
18 |
#define TARGET_NR_rt_sigaction (TARGET_NR_Linux + 13) |
|
19 |
#define TARGET_NR_rt_sigprocmask (TARGET_NR_Linux + 14) |
|
20 |
#define TARGET_NR_ioctl (TARGET_NR_Linux + 15) |
|
21 |
#define TARGET_NR_pread64 (TARGET_NR_Linux + 16) |
|
22 |
#define TARGET_NR_pwrite64 (TARGET_NR_Linux + 17) |
|
23 |
#define TARGET_NR_readv (TARGET_NR_Linux + 18) |
|
24 |
#define TARGET_NR_writev (TARGET_NR_Linux + 19) |
|
25 |
#define TARGET_NR_access (TARGET_NR_Linux + 20) |
|
26 |
#define TARGET_NR_pipe (TARGET_NR_Linux + 21) |
|
27 |
#define TARGET_NR__newselect (TARGET_NR_Linux + 22) |
|
28 |
#define TARGET_NR_sched_yield (TARGET_NR_Linux + 23) |
|
29 |
#define TARGET_NR_mremap (TARGET_NR_Linux + 24) |
|
30 |
#define TARGET_NR_msync (TARGET_NR_Linux + 25) |
|
31 |
#define TARGET_NR_mincore (TARGET_NR_Linux + 26) |
|
32 |
#define TARGET_NR_madvise (TARGET_NR_Linux + 27) |
|
33 |
#define TARGET_NR_shmget (TARGET_NR_Linux + 28) |
|
34 |
#define TARGET_NR_shmat (TARGET_NR_Linux + 29) |
|
35 |
#define TARGET_NR_shmctl (TARGET_NR_Linux + 30) |
|
36 |
#define TARGET_NR_dup (TARGET_NR_Linux + 31) |
|
37 |
#define TARGET_NR_dup2 (TARGET_NR_Linux + 32) |
|
38 |
#define TARGET_NR_pause (TARGET_NR_Linux + 33) |
|
39 |
#define TARGET_NR_nanosleep (TARGET_NR_Linux + 34) |
|
40 |
#define TARGET_NR_getitimer (TARGET_NR_Linux + 35) |
|
41 |
#define TARGET_NR_setitimer (TARGET_NR_Linux + 36) |
|
42 |
#define TARGET_NR_alarm (TARGET_NR_Linux + 37) |
|
43 |
#define TARGET_NR_getpid (TARGET_NR_Linux + 38) |
|
44 |
#define TARGET_NR_sendfile (TARGET_NR_Linux + 39) |
|
45 |
#define TARGET_NR_socket (TARGET_NR_Linux + 40) |
|
46 |
#define TARGET_NR_connect (TARGET_NR_Linux + 41) |
|
47 |
#define TARGET_NR_accept (TARGET_NR_Linux + 42) |
|
48 |
#define TARGET_NR_sendto (TARGET_NR_Linux + 43) |
|
49 |
#define TARGET_NR_recvfrom (TARGET_NR_Linux + 44) |
|
50 |
#define TARGET_NR_sendmsg (TARGET_NR_Linux + 45) |
|
51 |
#define TARGET_NR_recvmsg (TARGET_NR_Linux + 46) |
|
52 |
#define TARGET_NR_shutdown (TARGET_NR_Linux + 47) |
|
53 |
#define TARGET_NR_bind (TARGET_NR_Linux + 48) |
|
54 |
#define TARGET_NR_listen (TARGET_NR_Linux + 49) |
|
55 |
#define TARGET_NR_getsockname (TARGET_NR_Linux + 50) |
|
56 |
#define TARGET_NR_getpeername (TARGET_NR_Linux + 51) |
|
57 |
#define TARGET_NR_socketpair (TARGET_NR_Linux + 52) |
|
58 |
#define TARGET_NR_setsockopt (TARGET_NR_Linux + 53) |
|
59 |
#define TARGET_NR_getsockopt (TARGET_NR_Linux + 54) |
|
60 |
#define TARGET_NR_clone (TARGET_NR_Linux + 55) |
|
61 |
#define TARGET_NR_fork (TARGET_NR_Linux + 56) |
|
62 |
#define TARGET_NR_execve (TARGET_NR_Linux + 57) |
|
63 |
#define TARGET_NR_exit (TARGET_NR_Linux + 58) |
|
64 |
#define TARGET_NR_wait4 (TARGET_NR_Linux + 59) |
|
65 |
#define TARGET_NR_kill (TARGET_NR_Linux + 60) |
|
66 |
#define TARGET_NR_uname (TARGET_NR_Linux + 61) |
|
67 |
#define TARGET_NR_semget (TARGET_NR_Linux + 62) |
|
68 |
#define TARGET_NR_semop (TARGET_NR_Linux + 63) |
|
69 |
#define TARGET_NR_semctl (TARGET_NR_Linux + 64) |
|
70 |
#define TARGET_NR_shmdt (TARGET_NR_Linux + 65) |
|
71 |
#define TARGET_NR_msgget (TARGET_NR_Linux + 66) |
|
72 |
#define TARGET_NR_msgsnd (TARGET_NR_Linux + 67) |
|
73 |
#define TARGET_NR_msgrcv (TARGET_NR_Linux + 68) |
|
74 |
#define TARGET_NR_msgctl (TARGET_NR_Linux + 69) |
|
75 |
#define TARGET_NR_fcntl (TARGET_NR_Linux + 70) |
|
76 |
#define TARGET_NR_flock (TARGET_NR_Linux + 71) |
|
77 |
#define TARGET_NR_fsync (TARGET_NR_Linux + 72) |
|
78 |
#define TARGET_NR_fdatasync (TARGET_NR_Linux + 73) |
|
79 |
#define TARGET_NR_truncate (TARGET_NR_Linux + 74) |
|
80 |
#define TARGET_NR_ftruncate (TARGET_NR_Linux + 75) |
|
81 |
#define TARGET_NR_getdents (TARGET_NR_Linux + 76) |
|
82 |
#define TARGET_NR_getcwd (TARGET_NR_Linux + 77) |
|
83 |
#define TARGET_NR_chdir (TARGET_NR_Linux + 78) |
|
84 |
#define TARGET_NR_fchdir (TARGET_NR_Linux + 79) |
|
85 |
#define TARGET_NR_rename (TARGET_NR_Linux + 80) |
|
86 |
#define TARGET_NR_mkdir (TARGET_NR_Linux + 81) |
|
87 |
#define TARGET_NR_rmdir (TARGET_NR_Linux + 82) |
|
88 |
#define TARGET_NR_creat (TARGET_NR_Linux + 83) |
|
89 |
#define TARGET_NR_link (TARGET_NR_Linux + 84) |
|
90 |
#define TARGET_NR_unlink (TARGET_NR_Linux + 85) |
|
91 |
#define TARGET_NR_symlink (TARGET_NR_Linux + 86) |
|
92 |
#define TARGET_NR_readlink (TARGET_NR_Linux + 87) |
|
93 |
#define TARGET_NR_chmod (TARGET_NR_Linux + 88) |
|
94 |
#define TARGET_NR_fchmod (TARGET_NR_Linux + 89) |
|
95 |
#define TARGET_NR_chown (TARGET_NR_Linux + 90) |
|
96 |
#define TARGET_NR_fchown (TARGET_NR_Linux + 91) |
|
97 |
#define TARGET_NR_lchown (TARGET_NR_Linux + 92) |
|
98 |
#define TARGET_NR_umask (TARGET_NR_Linux + 93) |
|
99 |
#define TARGET_NR_gettimeofday (TARGET_NR_Linux + 94) |
|
100 |
#define TARGET_NR_getrlimit (TARGET_NR_Linux + 95) |
|
101 |
#define TARGET_NR_getrusage (TARGET_NR_Linux + 96) |
|
102 |
#define TARGET_NR_sysinfo (TARGET_NR_Linux + 97) |
|
103 |
#define TARGET_NR_times (TARGET_NR_Linux + 98) |
|
104 |
#define TARGET_NR_ptrace (TARGET_NR_Linux + 99) |
|
105 |
#define TARGET_NR_getuid (TARGET_NR_Linux + 100) |
|
106 |
#define TARGET_NR_syslog (TARGET_NR_Linux + 101) |
|
107 |
#define TARGET_NR_getgid (TARGET_NR_Linux + 102) |
|
108 |
#define TARGET_NR_setuid (TARGET_NR_Linux + 103) |
|
109 |
#define TARGET_NR_setgid (TARGET_NR_Linux + 104) |
|
110 |
#define TARGET_NR_geteuid (TARGET_NR_Linux + 105) |
|
111 |
#define TARGET_NR_getegid (TARGET_NR_Linux + 106) |
|
112 |
#define TARGET_NR_setpgid (TARGET_NR_Linux + 107) |
|
113 |
#define TARGET_NR_getppid (TARGET_NR_Linux + 108) |
|
114 |
#define TARGET_NR_getpgrp (TARGET_NR_Linux + 109) |
|
115 |
#define TARGET_NR_setsid (TARGET_NR_Linux + 110) |
|
116 |
#define TARGET_NR_setreuid (TARGET_NR_Linux + 111) |
|
117 |
#define TARGET_NR_setregid (TARGET_NR_Linux + 112) |
|
118 |
#define TARGET_NR_getgroups (TARGET_NR_Linux + 113) |
|
119 |
#define TARGET_NR_setgroups (TARGET_NR_Linux + 114) |
|
120 |
#define TARGET_NR_setresuid (TARGET_NR_Linux + 115) |
|
121 |
#define TARGET_NR_getresuid (TARGET_NR_Linux + 116) |
|
122 |
#define TARGET_NR_setresgid (TARGET_NR_Linux + 117) |
|
123 |
#define TARGET_NR_getresgid (TARGET_NR_Linux + 118) |
|
124 |
#define TARGET_NR_getpgid (TARGET_NR_Linux + 119) |
|
125 |
#define TARGET_NR_setfsuid (TARGET_NR_Linux + 120) |
|
126 |
#define TARGET_NR_setfsgid (TARGET_NR_Linux + 121) |
|
127 |
#define TARGET_NR_getsid (TARGET_NR_Linux + 122) |
|
128 |
#define TARGET_NR_capget (TARGET_NR_Linux + 123) |
|
129 |
#define TARGET_NR_capset (TARGET_NR_Linux + 124) |
|
130 |
#define TARGET_NR_rt_sigpending (TARGET_NR_Linux + 125) |
|
131 |
#define TARGET_NR_rt_sigtimedwait (TARGET_NR_Linux + 126) |
|
132 |
#define TARGET_NR_rt_sigqueueinfo (TARGET_NR_Linux + 127) |
|
133 |
#define TARGET_NR_rt_sigsuspend (TARGET_NR_Linux + 128) |
|
134 |
#define TARGET_NR_sigaltstack (TARGET_NR_Linux + 129) |
|
135 |
#define TARGET_NR_utime (TARGET_NR_Linux + 130) |
|
136 |
#define TARGET_NR_mknod (TARGET_NR_Linux + 131) |
|
137 |
#define TARGET_NR_personality (TARGET_NR_Linux + 132) |
|
138 |
#define TARGET_NR_ustat (TARGET_NR_Linux + 133) |
|
139 |
#define TARGET_NR_statfs (TARGET_NR_Linux + 134) |
|
140 |
#define TARGET_NR_fstatfs (TARGET_NR_Linux + 135) |
|
141 |
#define TARGET_NR_sysfs (TARGET_NR_Linux + 136) |
|
142 |
#define TARGET_NR_getpriority (TARGET_NR_Linux + 137) |
|
143 |
#define TARGET_NR_setpriority (TARGET_NR_Linux + 138) |
|
144 |
#define TARGET_NR_sched_setparam (TARGET_NR_Linux + 139) |
|
145 |
#define TARGET_NR_sched_getparam (TARGET_NR_Linux + 140) |
|
146 |
#define TARGET_NR_sched_setscheduler (TARGET_NR_Linux + 141) |
|
147 |
#define TARGET_NR_sched_getscheduler (TARGET_NR_Linux + 142) |
|
148 |
#define TARGET_NR_sched_get_priority_max (TARGET_NR_Linux + 143) |
|
149 |
#define TARGET_NR_sched_get_priority_min (TARGET_NR_Linux + 144) |
|
150 |
#define TARGET_NR_sched_rr_get_interval (TARGET_NR_Linux + 145) |
|
151 |
#define TARGET_NR_mlock (TARGET_NR_Linux + 146) |
|
152 |
#define TARGET_NR_munlock (TARGET_NR_Linux + 147) |
|
153 |
#define TARGET_NR_mlockall (TARGET_NR_Linux + 148) |
|
154 |
#define TARGET_NR_munlockall (TARGET_NR_Linux + 149) |
|
155 |
#define TARGET_NR_vhangup (TARGET_NR_Linux + 150) |
|
156 |
#define TARGET_NR_pivot_root (TARGET_NR_Linux + 151) |
|
157 |
#define TARGET_NR__sysctl (TARGET_NR_Linux + 152) |
|
158 |
#define TARGET_NR_prctl (TARGET_NR_Linux + 153) |
|
159 |
#define TARGET_NR_adjtimex (TARGET_NR_Linux + 154) |
|
160 |
#define TARGET_NR_setrlimit (TARGET_NR_Linux + 155) |
|
161 |
#define TARGET_NR_chroot (TARGET_NR_Linux + 156) |
|
162 |
#define TARGET_NR_sync (TARGET_NR_Linux + 157) |
|
163 |
#define TARGET_NR_acct (TARGET_NR_Linux + 158) |
|
164 |
#define TARGET_NR_settimeofday (TARGET_NR_Linux + 159) |
|
165 |
#define TARGET_NR_mount (TARGET_NR_Linux + 160) |
|
166 |
#define TARGET_NR_umount2 (TARGET_NR_Linux + 161) |
|
167 |
#define TARGET_NR_swapon (TARGET_NR_Linux + 162) |
|
168 |
#define TARGET_NR_swapoff (TARGET_NR_Linux + 163) |
|
169 |
#define TARGET_NR_reboot (TARGET_NR_Linux + 164) |
|
170 |
#define TARGET_NR_sethostname (TARGET_NR_Linux + 165) |
|
171 |
#define TARGET_NR_setdomainname (TARGET_NR_Linux + 166) |
|
172 |
#define TARGET_NR_create_module (TARGET_NR_Linux + 167) |
|
173 |
#define TARGET_NR_init_module (TARGET_NR_Linux + 168) |
|
174 |
#define TARGET_NR_delete_module (TARGET_NR_Linux + 169) |
|
175 |
#define TARGET_NR_get_kernel_syms (TARGET_NR_Linux + 170) |
|
176 |
#define TARGET_NR_query_module (TARGET_NR_Linux + 171) |
|
177 |
#define TARGET_NR_quotactl (TARGET_NR_Linux + 172) |
|
178 |
#define TARGET_NR_nfsservctl (TARGET_NR_Linux + 173) |
|
179 |
#define TARGET_NR_getpmsg (TARGET_NR_Linux + 174) |
|
180 |
#define TARGET_NR_putpmsg (TARGET_NR_Linux + 175) |
|
181 |
#define TARGET_NR_afs_syscall (TARGET_NR_Linux + 176) |
|
182 |
#define TARGET_NR_reserved177 (TARGET_NR_Linux + 177) |
|
183 |
#define TARGET_NR_gettid (TARGET_NR_Linux + 178) |
|
184 |
#define TARGET_NR_readahead (TARGET_NR_Linux + 179) |
|
185 |
#define TARGET_NR_setxattr (TARGET_NR_Linux + 180) |
|
186 |
#define TARGET_NR_lsetxattr (TARGET_NR_Linux + 181) |
|
187 |
#define TARGET_NR_fsetxattr (TARGET_NR_Linux + 182) |
|
188 |
#define TARGET_NR_getxattr (TARGET_NR_Linux + 183) |
|
189 |
#define TARGET_NR_lgetxattr (TARGET_NR_Linux + 184) |
|
190 |
#define TARGET_NR_fgetxattr (TARGET_NR_Linux + 185) |
|
191 |
#define TARGET_NR_listxattr (TARGET_NR_Linux + 186) |
|
192 |
#define TARGET_NR_llistxattr (TARGET_NR_Linux + 187) |
|
193 |
#define TARGET_NR_flistxattr (TARGET_NR_Linux + 188) |
|
194 |
#define TARGET_NR_removexattr (TARGET_NR_Linux + 189) |
|
195 |
#define TARGET_NR_lremovexattr (TARGET_NR_Linux + 190) |
|
196 |
#define TARGET_NR_fremovexattr (TARGET_NR_Linux + 191) |
|
197 |
#define TARGET_NR_tkill (TARGET_NR_Linux + 192) |
|
198 |
#define TARGET_NR_reserved193 (TARGET_NR_Linux + 193) |
|
199 |
#define TARGET_NR_futex (TARGET_NR_Linux + 194) |
|
200 |
#define TARGET_NR_sched_setaffinity (TARGET_NR_Linux + 195) |
|
201 |
#define TARGET_NR_sched_getaffinity (TARGET_NR_Linux + 196) |
|
202 |
#define TARGET_NR_cacheflush (TARGET_NR_Linux + 197) |
|
203 |
#define TARGET_NR_cachectl (TARGET_NR_Linux + 198) |
|
204 |
#define TARGET_NR_sysmips (TARGET_NR_Linux + 199) |
|
205 |
#define TARGET_NR_io_setup (TARGET_NR_Linux + 200) |
|
206 |
#define TARGET_NR_io_destroy (TARGET_NR_Linux + 201) |
|
207 |
#define TARGET_NR_io_getevents (TARGET_NR_Linux + 202) |
|
208 |
#define TARGET_NR_io_submit (TARGET_NR_Linux + 203) |
|
209 |
#define TARGET_NR_io_cancel (TARGET_NR_Linux + 204) |
|
210 |
#define TARGET_NR_exit_group (TARGET_NR_Linux + 205) |
|
211 |
#define TARGET_NR_lookup_dcookie (TARGET_NR_Linux + 206) |
|
212 |
#define TARGET_NR_epoll_create (TARGET_NR_Linux + 207) |
|
213 |
#define TARGET_NR_epoll_ctl (TARGET_NR_Linux + 208) |
|
214 |
#define TARGET_NR_epoll_wait (TARGET_NR_Linux + 209) |
|
215 |
#define TARGET_NR_remap_file_pages (TARGET_NR_Linux + 210) |
|
216 |
#define TARGET_NR_rt_sigreturn (TARGET_NR_Linux + 211) |
|
217 |
#define TARGET_NR_set_tid_address (TARGET_NR_Linux + 212) |
|
218 |
#define TARGET_NR_restart_syscall (TARGET_NR_Linux + 213) |
|
219 |
#define TARGET_NR_semtimedop (TARGET_NR_Linux + 214) |
|
220 |
#define TARGET_NR_fadvise64 (TARGET_NR_Linux + 215) |
|
221 |
#define TARGET_NR_timer_create (TARGET_NR_Linux + 216) |
|
222 |
#define TARGET_NR_timer_settime (TARGET_NR_Linux + 217) |
|
223 |
#define TARGET_NR_timer_gettime (TARGET_NR_Linux + 218) |
|
224 |
#define TARGET_NR_timer_getoverrun (TARGET_NR_Linux + 219) |
|
225 |
#define TARGET_NR_timer_delete (TARGET_NR_Linux + 220) |
|
226 |
#define TARGET_NR_clock_settime (TARGET_NR_Linux + 221) |
|
227 |
#define TARGET_NR_clock_gettime (TARGET_NR_Linux + 222) |
|
228 |
#define TARGET_NR_clock_getres (TARGET_NR_Linux + 223) |
|
229 |
#define TARGET_NR_clock_nanosleep (TARGET_NR_Linux + 224) |
|
230 |
#define TARGET_NR_tgkill (TARGET_NR_Linux + 225) |
|
231 |
#define TARGET_NR_utimes (TARGET_NR_Linux + 226) |
|
232 |
#define TARGET_NR_mbind (TARGET_NR_Linux + 227) |
|
233 |
#define TARGET_NR_get_mempolicy (TARGET_NR_Linux + 228) |
|
234 |
#define TARGET_NR_set_mempolicy (TARGET_NR_Linux + 229) |
|
235 |
#define TARGET_NR_mq_open (TARGET_NR_Linux + 230) |
|
236 |
#define TARGET_NR_mq_unlink (TARGET_NR_Linux + 231) |
|
237 |
#define TARGET_NR_mq_timedsend (TARGET_NR_Linux + 232) |
|
238 |
#define TARGET_NR_mq_timedreceive (TARGET_NR_Linux + 233) |
|
239 |
#define TARGET_NR_mq_notify (TARGET_NR_Linux + 234) |
|
240 |
#define TARGET_NR_mq_getsetattr (TARGET_NR_Linux + 235) |
|
241 |
#define TARGET_NR_vserver (TARGET_NR_Linux + 236) |
|
242 |
#define TARGET_NR_waitid (TARGET_NR_Linux + 237) |
|
243 |
/* #define TARGET_NR_sys_setaltroot (TARGET_NR_Linux + 238) */ |
|
244 |
#define TARGET_NR_add_key (TARGET_NR_Linux + 239) |
|
245 |
#define TARGET_NR_request_key (TARGET_NR_Linux + 240) |
|
246 |
#define TARGET_NR_keyctl (TARGET_NR_Linux + 241) |
|
247 |
#define TARGET_NR_set_thread_area (TARGET_NR_Linux + 242) |
|
248 |
#define TARGET_NR_inotify_init (TARGET_NR_Linux + 243) |
|
249 |
#define TARGET_NR_inotify_add_watch (TARGET_NR_Linux + 244) |
|
250 |
#define TARGET_NR_inotify_rm_watch (TARGET_NR_Linux + 245) |
|
251 |
#define TARGET_NR_migrate_pages (TARGET_NR_Linux + 246) |
|
252 |
#define TARGET_NR_openat (TARGET_NR_Linux + 247) |
|
253 |
#define TARGET_NR_mkdirat (TARGET_NR_Linux + 248) |
|
254 |
#define TARGET_NR_mknodat (TARGET_NR_Linux + 249) |
|
255 |
#define TARGET_NR_fchownat (TARGET_NR_Linux + 250) |
|
256 |
#define TARGET_NR_futimesat (TARGET_NR_Linux + 251) |
|
257 |
#define TARGET_NR_newfstatat (TARGET_NR_Linux + 252) |
|
258 |
#define TARGET_NR_unlinkat (TARGET_NR_Linux + 253) |
|
259 |
#define TARGET_NR_renameat (TARGET_NR_Linux + 254) |
|
260 |
#define TARGET_NR_linkat (TARGET_NR_Linux + 255) |
|
261 |
#define TARGET_NR_symlinkat (TARGET_NR_Linux + 256) |
|
262 |
#define TARGET_NR_readlinkat (TARGET_NR_Linux + 257) |
|
263 |
#define TARGET_NR_fchmodat (TARGET_NR_Linux + 258) |
|
264 |
#define TARGET_NR_faccessat (TARGET_NR_Linux + 259) |
|
265 |
#define TARGET_NR_pselect6 (TARGET_NR_Linux + 260) |
|
266 |
#define TARGET_NR_ppoll (TARGET_NR_Linux + 261) |
|
267 |
#define TARGET_NR_unshare (TARGET_NR_Linux + 262) |
|
268 |
#define TARGET_NR_splice (TARGET_NR_Linux + 263) |
|
269 |
#define TARGET_NR_sync_file_range (TARGET_NR_Linux + 264) |
|
270 |
#define TARGET_NR_tee (TARGET_NR_Linux + 265) |
|
271 |
#define TARGET_NR_vmsplice (TARGET_NR_Linux + 266) |
|
272 |
#define TARGET_NR_move_pages (TARGET_NR_Linux + 267) |
|
273 |
#define TARGET_NR_set_robust_list (TARGET_NR_Linux + 268) |
|
274 |
#define TARGET_NR_get_robust_list (TARGET_NR_Linux + 269) |
|
275 |
#define TARGET_NR_kexec_load (TARGET_NR_Linux + 270) |
|
276 |
#define TARGET_NR_getcpu (TARGET_NR_Linux + 271) |
|
277 |
#define TARGET_NR_epoll_pwait (TARGET_NR_Linux + 272) |
|
278 |
#define TARGET_NR_ioprio_set (TARGET_NR_Linux + 273) |
|
279 |
#define TARGET_NR_ioprio_get (TARGET_NR_Linux + 274) |
|
280 |
#define TARGET_NR_utimensat (TARGET_NR_Linux + 275) |
|
281 |
#define TARGET_NR_signalfd (TARGET_NR_Linux + 276) |
|
282 |
#define TARGET_NR_timerfd (TARGET_NR_Linux + 277) |
|
283 |
#define TARGET_NR_eventfd (TARGET_NR_Linux + 278) |
|
284 |
#define TARGET_NR_fallocate (TARGET_NR_Linux + 279) |
b/linux-user/mips64/target_signal.h | ||
---|---|---|
1 |
#ifndef TARGET_SIGNAL_H |
|
2 |
#define TARGET_SIGNAL_H |
|
3 |
|
|
4 |
#include "cpu.h" |
|
5 |
|
|
6 |
/* this struct defines a stack used during syscall handling */ |
|
7 |
|
|
8 |
typedef struct target_sigaltstack { |
|
9 |
target_long ss_sp; |
|
10 |
target_ulong ss_size; |
|
11 |
target_long ss_flags; |
|
12 |
} target_stack_t; |
|
13 |
|
|
14 |
|
|
15 |
/* |
|
16 |
* sigaltstack controls |
|
17 |
*/ |
|
18 |
#define TARGET_SS_ONSTACK 1 |
|
19 |
#define TARGET_SS_DISABLE 2 |
|
20 |
|
|
21 |
#define TARGET_MINSIGSTKSZ 2048 |
|
22 |
#define TARGET_SIGSTKSZ 8192 |
|
23 |
|
|
24 |
static inline target_ulong get_sp_from_cpustate(CPUMIPSState *state) |
|
25 |
{ |
|
26 |
return state->gpr[29][state->current_tc]; |
|
27 |
} |
|
28 |
|
|
29 |
#endif /* TARGET_SIGNAL_H */ |
b/linux-user/mips64/termbits.h | ||
---|---|---|
1 |
/* from asm/termbits.h */ |
|
2 |
|
|
3 |
#define TARGET_NCCS 23 |
|
4 |
|
|
5 |
struct target_termios { |
|
6 |
unsigned int c_iflag; /* input mode flags */ |
|
7 |
unsigned int c_oflag; /* output mode flags */ |
|
8 |
unsigned int c_cflag; /* control mode flags */ |
|
9 |
unsigned int c_lflag; /* local mode flags */ |
|
10 |
unsigned char c_line; /* line discipline */ |
|
11 |
unsigned char c_cc[TARGET_NCCS]; /* control characters */ |
|
12 |
}; |
|
13 |
|
|
14 |
/* c_iflag bits */ |
|
15 |
#define TARGET_IGNBRK 0000001 |
|
16 |
#define TARGET_BRKINT 0000002 |
|
17 |
#define TARGET_IGNPAR 0000004 |
|
18 |
#define TARGET_PARMRK 0000010 |
|
19 |
#define TARGET_INPCK 0000020 |
|
20 |
#define TARGET_ISTRIP 0000040 |
|
21 |
#define TARGET_INLCR 0000100 |
|
22 |
#define TARGET_IGNCR 0000200 |
|
23 |
#define TARGET_ICRNL 0000400 |
|
24 |
#define TARGET_IUCLC 0001000 |
|
25 |
#define TARGET_IXON 0002000 |
|
26 |
#define TARGET_IXANY 0004000 |
|
27 |
#define TARGET_IXOFF 0010000 |
|
28 |
#define TARGET_IMAXBEL 0020000 |
|
29 |
#define TARGET_IUTF8 0040000 |
|
30 |
|
|
31 |
/* c_oflag bits */ |
|
32 |
#define TARGET_OPOST 0000001 |
|
33 |
#define TARGET_OLCUC 0000002 |
|
34 |
#define TARGET_ONLCR 0000004 |
|
35 |
#define TARGET_OCRNL 0000010 |
|
36 |
#define TARGET_ONOCR 0000020 |
|
37 |
#define TARGET_ONLRET 0000040 |
|
38 |
#define TARGET_OFILL 0000100 |
|
39 |
#define TARGET_OFDEL 0000200 |
|
40 |
#define TARGET_NLDLY 0000400 |
|
41 |
#define TARGET_NL0 0000000 |
|
42 |
#define TARGET_NL1 0000400 |
|
43 |
#define TARGET_CRDLY 0003000 |
|
44 |
#define TARGET_CR0 0000000 |
|
45 |
#define TARGET_CR1 0001000 |
|
46 |
#define TARGET_CR2 0002000 |
|
47 |
#define TARGET_CR3 0003000 |
|
48 |
#define TARGET_TABDLY 0014000 |
|
49 |
#define TARGET_TAB0 0000000 |
|
50 |
#define TARGET_TAB1 0004000 |
|
51 |
#define TARGET_TAB2 0010000 |
|
52 |
#define TARGET_TAB3 0014000 |
|
53 |
#define TARGET_XTABS 0014000 |
|
54 |
#define TARGET_BSDLY 0020000 |
|
55 |
#define TARGET_BS0 0000000 |
|
56 |
#define TARGET_BS1 0020000 |
|
57 |
#define TARGET_VTDLY 0040000 |
|
58 |
#define TARGET_VT0 0000000 |
|
59 |
#define TARGET_VT1 0040000 |
|
60 |
#define TARGET_FFDLY 0100000 |
|
61 |
#define TARGET_FF0 0000000 |
|
62 |
#define TARGET_FF1 0100000 |
|
63 |
|
|
64 |
/* c_cflag bit meaning */ |
|
65 |
#define TARGET_CBAUD 0010017 |
|
66 |
#define TARGET_B0 0000000 /* hang up */ |
|
67 |
#define TARGET_B50 0000001 |
|
68 |
#define TARGET_B75 0000002 |
|
69 |
#define TARGET_B110 0000003 |
|
70 |
#define TARGET_B134 0000004 |
|
71 |
#define TARGET_B150 0000005 |
|
72 |
#define TARGET_B200 0000006 |
|
73 |
#define TARGET_B300 0000007 |
|
74 |
#define TARGET_B600 0000010 |
|
75 |
#define TARGET_B1200 0000011 |
|
76 |
#define TARGET_B1800 0000012 |
|
77 |
#define TARGET_B2400 0000013 |
|
78 |
#define TARGET_B4800 0000014 |
|
79 |
#define TARGET_B9600 0000015 |
|
80 |
#define TARGET_B19200 0000016 |
|
81 |
#define TARGET_B38400 0000017 |
|
82 |
#define TARGET_EXTA B19200 |
|
83 |
#define TARGET_EXTB B38400 |
|
84 |
#define TARGET_CSIZE 0000060 |
|
85 |
#define TARGET_CS5 0000000 |
|
86 |
#define TARGET_CS6 0000020 |
|
87 |
#define TARGET_CS7 0000040 |
|
88 |
#define TARGET_CS8 0000060 |
|
89 |
#define TARGET_CSTOPB 0000100 |
|
90 |
#define TARGET_CREAD 0000200 |
|
91 |
#define TARGET_PARENB 0000400 |
|
92 |
#define TARGET_PARODD 0001000 |
|
93 |
#define TARGET_HUPCL 0002000 |
|
94 |
#define TARGET_CLOCAL 0004000 |
|
95 |
#define TARGET_CBAUDEX 0010000 |
|
96 |
#define TARGET_BOTHER 0010000 |
|
97 |
#define TARGET_B57600 0010001 |
|
98 |
#define TARGET_B115200 0010002 |
|
99 |
#define TARGET_B230400 0010003 |
|
100 |
#define TARGET_B460800 0010004 |
|
101 |
#define TARGET_B500000 0010005 |
|
102 |
#define TARGET_B576000 0010006 |
|
103 |
#define TARGET_B921600 0010007 |
|
104 |
#define TARGET_B1000000 0010010 |
|
105 |
#define TARGET_B1152000 0010011 |
|
106 |
#define TARGET_B1500000 0010012 |
|
107 |
#define TARGET_B2000000 0010013 |
|
108 |
#define TARGET_B2500000 0010014 |
|
109 |
#define TARGET_B3000000 0010015 |
|
110 |
#define TARGET_B3500000 0010016 |
|
111 |
#define TARGET_B4000000 0010017 |
|
112 |
#define TARGET_CIBAUD 002003600000 /* input baud rate (not used) */ |
|
113 |
#define TARGET_CMSPAR 010000000000 /* mark or space (stick) parity */ |
|
114 |
#define TARGET_CRTSCTS 020000000000 /* flow control */ |
|
115 |
|
|
116 |
/* c_lflag bits */ |
|
117 |
#define TARGET_ISIG 0000001 |
|
118 |
#define TARGET_ICANON 0000002 |
|
119 |
#define TARGET_XCASE 0000004 |
|
120 |
#define TARGET_ECHO 0000010 |
|
121 |
#define TARGET_ECHOE 0000020 |
|
122 |
#define TARGET_ECHOK 0000040 |
|
123 |
#define TARGET_ECHONL 0000100 |
|
124 |
#define TARGET_NOFLSH 0000200 |
|
125 |
#define TARGET_IEXTEN 0000400 |
|
126 |
#define TARGET_ECHOCTL 0001000 |
|
127 |
#define TARGET_ECHOPRT 0002000 |
|
128 |
#define TARGET_ECHOKE 0004000 |
|
129 |
#define TARGET_FLUSHO 0010000 |
|
130 |
#define TARGET_PENDIN 0040000 |
|
131 |
#define TARGET_TOSTOP 0100000 |
|
132 |
#define TARGET_ITOSTOP TARGET_TOSTOP |
|
133 |
|
|
134 |
/* c_cc character offsets */ |
|
135 |
#define TARGET_VINTR 0 |
|
136 |
#define TARGET_VQUIT 1 |
|
137 |
#define TARGET_VERASE 2 |
|
138 |
#define TARGET_VKILL 3 |
|
139 |
#define TARGET_VMIN 4 |
|
140 |
#define TARGET_VTIME 5 |
|
141 |
#define TARGET_VEOL2 6 |
|
142 |
#define TARGET_VSWTC 7 |
|
143 |
#define TARGET_VSTART 8 |
|
144 |
#define TARGET_VSTOP 9 |
|
145 |
#define TARGET_VSUSP 10 |
|
146 |
/* VDSUSP not supported */ |
|
147 |
#define TARGET_VREPRINT 12 |
|
148 |
#define TARGET_VDISCARD 13 |
|
149 |
#define TARGET_VWERASE 14 |
|
150 |
#define TARGET_VLNEXT 15 |
|
151 |
#define TARGET_VEOF 16 |
|
152 |
#define TARGET_VEOL 17 |
|
153 |
|
|
154 |
/* ioctls */ |
|
155 |
|
|
156 |
#define TARGET_TCGETA 0x5401 |
|
157 |
#define TARGET_TCSETA 0x5402 /* Clashes with SNDCTL_TMR_START sound ioctl */ |
|
158 |
#define TARGET_TCSETAW 0x5403 |
|
159 |
#define TARGET_TCSETAF 0x5404 |
|
160 |
|
|
161 |
#define TARGET_TCSBRK 0x5405 |
|
162 |
#define TARGET_TCXONC 0x5406 |
|
163 |
#define TARGET_TCFLSH 0x5407 |
|
164 |
|
|
165 |
#define TARGET_TCGETS 0x540d |
|
166 |
#define TARGET_TCSETS 0x540e |
|
167 |
#define TARGET_TCSETSW 0x540f |
|
168 |
#define TARGET_TCSETSF 0x5410 |
|
169 |
|
|
170 |
#define TARGET_TIOCEXCL 0x740d /* set exclusive use of tty */ |
|
171 |
#define TARGET_TIOCNXCL 0x740e /* reset exclusive use of tty */ |
|
172 |
#define TARGET_TIOCOUTQ 0x7472 /* output queue size */ |
|
173 |
#define TARGET_TIOCSTI 0x5472 /* simulate terminal input */ |
|
174 |
#define TARGET_TIOCMGET 0x741d /* get all modem bits */ |
|
175 |
#define TARGET_TIOCMBIS 0x741b /* bis modem bits */ |
|
176 |
#define TARGET_TIOCMBIC 0x741c /* bic modem bits */ |
|
177 |
#define TARGET_TIOCMSET 0x741a /* set all modem bits */ |
|
178 |
#define TARGET_TIOCPKT 0x5470 /* pty: set/clear packet mode */ |
|
179 |
#define TARGET_TIOCPKT_DATA 0x00 /* data packet */ |
|
180 |
#define TARGET_TIOCPKT_FLUSHREAD 0x01 /* flush packet */ |
|
181 |
#define TARGET_TIOCPKT_FLUSHWRITE 0x02 /* flush packet */ |
|
182 |
#define TARGET_TIOCPKT_STOP 0x04 /* stop output */ |
|
183 |
#define TARGET_TIOCPKT_START 0x08 /* start output */ |
|
184 |
#define TARGET_TIOCPKT_NOSTOP 0x10 /* no more ^S, ^Q */ |
|
185 |
#define TARGET_TIOCPKT_DOSTOP 0x20 /* now do ^S ^Q */ |
|
186 |
/* #define TIOCPKT_IOCTL 0x40 state change of pty driver */ |
|
187 |
#define TARGET_TIOCSWINSZ TARGET_IOW('t', 103, struct winsize) /* set window size */ |
|
188 |
#define TARGET_TIOCGWINSZ TARGET_IOR('t', 104, struct winsize) /* get window size */ |
|
189 |
#define TARGET_TIOCNOTTY 0x5471 /* void tty association */ |
|
190 |
#define TARGET_TIOCSETD 0x7401 |
|
191 |
#define TARGET_TIOCGETD 0x7400 |
|
192 |
|
|
193 |
#define TARGET_FIOCLEX 0x6601 |
|
194 |
#define TARGET_FIONCLEX 0x6602 |
|
195 |
#define TARGET_FIOASYNC 0x667d |
|
196 |
#define TARGET_FIONBIO 0x667e |
|
197 |
#define TARGET_FIOQSIZE 0x667f |
|
198 |
|
|
199 |
#define TARGET_TIOCGLTC 0x7474 /* get special local chars */ |
|
200 |
#define TARGET_TIOCSLTC 0x7475 /* set special local chars */ |
|
201 |
#define TARGET_TIOCSPGRP TARGET_IOW('t', 118, int) /* set pgrp of tty */ |
|
202 |
#define TARGET_TIOCGPGRP TARGET_IOR('t', 119, int) /* get pgrp of tty */ |
|
203 |
#define TARGET_TIOCCONS TARGET_IOW('t', 120, int) /* become virtual console */ |
|
204 |
|
|
205 |
#define TARGET_FIONREAD 0x467f |
|
206 |
#define TARGET_TIOCINQ TARGET_FIONREAD |
|
207 |
|
|
208 |
#define TARGET_TIOCGETP 0x7408 |
|
209 |
#define TARGET_TIOCSETP 0x7409 |
|
210 |
#define TARGET_TIOCSETN 0x740a /* TIOCSETP wo flush */ |
|
211 |
|
|
212 |
/* #define TARGET_TIOCSETA TARGET_IOW('t', 20, struct termios) set termios struct */ |
|
213 |
/* #define TARGET_TIOCSETAW TARGET_IOW('t', 21, struct termios) drain output, set */ |
|
214 |
/* #define TARGET_TIOCSETAF TARGET_IOW('t', 22, struct termios) drn out, fls in, set */ |
|
215 |
/* #define TARGET_TIOCGETD TARGET_IOR('t', 26, int) get line discipline */ |
|
216 |
/* #define TARGET_TIOCSETD TARGET_IOW('t', 27, int) set line discipline */ |
|
217 |
/* 127-124 compat */ |
|
218 |
|
|
219 |
#define TARGET_TIOCSBRK 0x5427 /* BSD compatibility */ |
|
220 |
#define TARGET_TIOCCBRK 0x5428 /* BSD compatibility */ |
|
221 |
#define TARGET_TIOCGSID 0x7416 /* Return the session ID of FD */ |
|
222 |
#define TARGET_TIOCGPTN TARGET_IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ |
|
223 |
#define TARGET_TIOCSPTLCK TARGET_IOW('T',0x31, int) /* Lock/unlock Pty */ |
|
224 |
|
|
225 |
/* I hope the range from 0x5480 on is free ... */ |
|
226 |
#define TARGET_TIOCSCTTY 0x5480 /* become controlling tty */ |
|
227 |
#define TARGET_TIOCGSOFTCAR 0x5481 |
|
228 |
#define TARGET_TIOCSSOFTCAR 0x5482 |
|
229 |
#define TARGET_TIOCLINUX 0x5483 |
|
230 |
#define TARGET_TIOCGSERIAL 0x5484 |
|
231 |
#define TARGET_TIOCSSERIAL 0x5485 |
|
232 |
#define TARGET_TCSBRKP 0x5486 /* Needed for POSIX tcsendbreak() */ |
|
233 |
#define TARGET_TIOCSERCONFIG 0x5488 |
|
234 |
#define TARGET_TIOCSERGWILD 0x5489 |
|
235 |
#define TARGET_TIOCSERSWILD 0x548a |
|
236 |
#define TARGET_TIOCGLCKTRMIOS 0x548b |
|
237 |
#define TARGET_TIOCSLCKTRMIOS 0x548c |
|
238 |
#define TARGET_TIOCSERGSTRUCT 0x548d /* For debugging only */ |
|
239 |
#define TARGET_TIOCSERGETLSR 0x548e /* Get line status register */ |
|
240 |
#define TARGET_TIOCSERGETMULTI 0x548f /* Get multiport config */ |
|
241 |
#define TARGET_TIOCSERSETMULTI 0x5490 /* Set multiport config */ |
|
242 |
#define TARGET_TIOCMIWAIT 0x5491 /* wait for a change on serial input line(s) */ |
|
243 |
#define TARGET_TIOCGICOUNT 0x5492 /* read serial port inline interrupt counts */ |
|
244 |
#define TARGET_TIOCGHAYESESP 0x5493 /* Get Hayes ESP configuration */ |
|
245 |
#define TARGET_TIOCSHAYESESP 0x5494 /* Set Hayes ESP configuration */ |
b/linux-user/mipsn32/syscall.h | ||
---|---|---|
1 |
|
|
2 |
/* this struct defines the way the registers are stored on the |
|
3 |
stack during a system call. */ |
|
4 |
|
|
5 |
struct target_pt_regs { |
|
6 |
/* Saved main processor registers. */ |
|
7 |
target_ulong regs[32]; |
|
8 |
|
|
9 |
/* Saved special registers. */ |
|
10 |
target_ulong cp0_status; |
|
11 |
target_ulong lo; |
|
12 |
target_ulong hi; |
|
13 |
target_ulong cp0_badvaddr; |
|
14 |
target_ulong cp0_cause; |
|
15 |
target_ulong cp0_epc; |
|
16 |
}; |
|
17 |
|
|
18 |
/* Target errno definitions taken from asm-mips/errno.h */ |
|
19 |
#undef TARGET_ENOMSG |
|
20 |
#define TARGET_ENOMSG 35 /* Identifier removed */ |
|
21 |
#undef TARGET_EIDRM |
|
22 |
#define TARGET_EIDRM 36 /* Identifier removed */ |
|
23 |
#undef TARGET_ECHRNG |
|
24 |
#define TARGET_ECHRNG 37 /* Channel number out of range */ |
|
25 |
#undef TARGET_EL2NSYNC |
|
26 |
#define TARGET_EL2NSYNC 38 /* Level 2 not synchronized */ |
|
27 |
#undef TARGET_EL3HLT |
|
28 |
#define TARGET_EL3HLT 39 /* Level 3 halted */ |
|
29 |
#undef TARGET_EL3RST |
|
30 |
#define TARGET_EL3RST 40 /* Level 3 reset */ |
|
31 |
#undef TARGET_ELNRNG |
|
32 |
#define TARGET_ELNRNG 41 /* Link number out of range */ |
|
33 |
#undef TARGET_EUNATCH |
|
34 |
#define TARGET_EUNATCH 42 /* Protocol driver not attached */ |
|
35 |
#undef TARGET_ENOCSI |
|
36 |
#define TARGET_ENOCSI 43 /* No CSI structure available */ |
|
37 |
#undef TARGET_EL2HLT |
|
38 |
#define TARGET_EL2HLT 44 /* Level 2 halted */ |
|
39 |
#undef TARGET_EDEADLK |
|
40 |
#define TARGET_EDEADLK 45 /* Resource deadlock would occur */ |
|
41 |
#undef TARGET_ENOLCK |
|
42 |
#define TARGET_ENOLCK 46 /* No record locks available */ |
|
43 |
#undef TARGET_EBADE |
|
44 |
#define TARGET_EBADE 50 /* Invalid exchange */ |
|
45 |
#undef TARGET_EBADR |
|
46 |
#define TARGET_EBADR 51 /* Invalid request descriptor */ |
|
47 |
#undef TARGET_EXFULL |
|
48 |
#define TARGET_EXFULL 52 /* TARGET_Exchange full */ |
|
49 |
#undef TARGET_ENOANO |
|
50 |
#define TARGET_ENOANO 53 /* No anode */ |
|
51 |
#undef TARGET_EBADRQC |
|
52 |
#define TARGET_EBADRQC 54 /* Invalid request code */ |
|
53 |
#undef TARGET_EBADSLT |
|
54 |
#define TARGET_EBADSLT 55 /* Invalid slot */ |
|
55 |
#undef TARGET_EDEADLOCK |
|
56 |
#define TARGET_EDEADLOCK 56 /* File locking deadlock error */ |
|
57 |
#undef TARGET_EBFONT |
|
58 |
#define TARGET_EBFONT 59 /* Bad font file format */ |
|
59 |
#undef TARGET_ENOSTR |
|
60 |
#define TARGET_ENOSTR 60 /* Device not a stream */ |
|
61 |
#undef TARGET_ENODATA |
|
62 |
#define TARGET_ENODATA 61 /* No data available */ |
|
63 |
#undef TARGET_ETIME |
|
64 |
#define TARGET_ETIME 62 /* Timer expired */ |
|
65 |
#undef TARGET_ENOSR |
|
66 |
#define TARGET_ENOSR 63 /* Out of streams resources */ |
|
67 |
#undef TARGET_ENONET |
|
68 |
#define TARGET_ENONET 64 /* Machine is not on the network */ |
|
69 |
#undef TARGET_ENOPKG |
|
70 |
#define TARGET_ENOPKG 65 /* Package not installed */ |
|
71 |
#undef TARGET_EREMOTE |
|
72 |
#define TARGET_EREMOTE 66 /* Object is remote */ |
|
73 |
#undef TARGET_ENOLINK |
|
74 |
#define TARGET_ENOLINK 67 /* Link has been severed */ |
|
75 |
#undef TARGET_EADV |
|
76 |
#define TARGET_EADV 68 /* Advertise error */ |
|
77 |
#undef TARGET_ESRMNT |
|
78 |
#define TARGET_ESRMNT 69 /* Srmount error */ |
|
79 |
#undef TARGET_ECOMM |
|
80 |
#define TARGET_ECOMM 70 /* Communication error on send */ |
|
81 |
#undef TARGET_EPROTO |
|
82 |
#define TARGET_EPROTO 71 /* Protocol error */ |
|
83 |
#undef TARGET_EDOTDOT |
|
84 |
#define TARGET_EDOTDOT 73 /* RFS specific error */ |
|
85 |
#undef TARGET_EMULTIHOP |
|
86 |
#define TARGET_EMULTIHOP 74 /* Multihop attempted */ |
|
87 |
#undef TARGET_EBADMSG |
|
88 |
#define TARGET_EBADMSG 77 /* Not a data message */ |
|
89 |
#undef TARGET_ENAMETOOLONG |
|
90 |
#define TARGET_ENAMETOOLONG 78 /* File name too long */ |
|
91 |
#undef TARGET_EOVERFLOW |
|
92 |
#define TARGET_EOVERFLOW 79 /* Value too large for defined data type */ |
|
93 |
#undef TARGET_ENOTUNIQ |
|
94 |
#define TARGET_ENOTUNIQ 80 /* Name not unique on network */ |
|
95 |
#undef TARGET_EBADFD |
|
96 |
#define TARGET_EBADFD 81 /* File descriptor in bad state */ |
|
97 |
#undef TARGET_EREMCHG |
|
98 |
#define TARGET_EREMCHG 82 /* Remote address changed */ |
|
99 |
#undef TARGET_ELIBACC |
|
100 |
#define TARGET_ELIBACC 83 /* Can not access a needed shared library */ |
|
101 |
#undef TARGET_ELIBBAD |
|
102 |
#define TARGET_ELIBBAD 84 /* Accessing a corrupted shared library */ |
|
103 |
#undef TARGET_ELIBSCN |
|
104 |
#define TARGET_ELIBSCN 85 /* .lib section in a.out corrupted */ |
|
105 |
#undef TARGET_ELIBMAX |
|
106 |
#define TARGET_ELIBMAX 86 /* Attempting to link in too many shared libraries */ |
|
107 |
#undef TARGET_ELIBEXEC |
|
108 |
#define TARGET_ELIBEXEC 87 /* Cannot exec a shared library directly */ |
|
109 |
#undef TARGET_EILSEQ |
|
110 |
#define TARGET_EILSEQ 88 /* Illegal byte sequence */ |
|
111 |
#undef TARGET_ENOSYS |
|
112 |
#define TARGET_ENOSYS 89 /* Function not implemented */ |
|
113 |
#undef TARGET_ELOOP |
|
114 |
#define TARGET_ELOOP 90 /* Too many symbolic links encountered */ |
|
115 |
#undef TARGET_ERESTART |
|
116 |
#define TARGET_ERESTART 91 /* Interrupted system call should be restarted */ |
|
117 |
#undef TARGET_ESTRPIPE |
|
118 |
#define TARGET_ESTRPIPE 92 /* Streams pipe error */ |
|
119 |
#undef TARGET_ENOTEMPTY |
|
120 |
#define TARGET_ENOTEMPTY 93 /* Directory not empty */ |
|
121 |
#undef TARGET_EUSERS |
|
122 |
#define TARGET_EUSERS 94 /* Too many users */ |
|
123 |
#undef TARGET_ENOTSOCK |
|
124 |
#define TARGET_ENOTSOCK 95 /* Socket operation on non-socket */ |
|
125 |
#undef TARGET_EDESTADDRREQ |
|
126 |
#define TARGET_EDESTADDRREQ 96 /* Destination address required */ |
|
127 |
#undef TARGET_EMSGSIZE |
|
128 |
#define TARGET_EMSGSIZE 97 /* Message too long */ |
|
129 |
#undef TARGET_EPROTOTYPE |
|
130 |
#define TARGET_EPROTOTYPE 98 /* Protocol wrong type for socket */ |
|
131 |
#undef TARGET_ENOPROTOOPT |
|
132 |
#define TARGET_ENOPROTOOPT 99 /* Protocol not available */ |
|
133 |
#undef TARGET_EPROTONOSUPPORT |
|
134 |
#define TARGET_EPROTONOSUPPORT 120 /* Protocol not supported */ |
|
135 |
#undef TARGET_ESOCKTNOSUPPORT |
|
136 |
#define TARGET_ESOCKTNOSUPPORT 121 /* Socket type not supported */ |
|
137 |
#undef TARGET_EOPNOTSUPP |
|
138 |
#define TARGET_EOPNOTSUPP 122 /* Operation not supported on transport endpoint */ |
|
139 |
#undef TARGET_EPFNOSUPPORT |
|
140 |
#define TARGET_EPFNOSUPPORT 123 /* Protocol family not supported */ |
|
141 |
#undef TARGET_EAFNOSUPPORT |
|
142 |
#define TARGET_EAFNOSUPPORT 124 /* Address family not supported by protocol */ |
|
143 |
#undef TARGET_EADDRINUSE |
|
144 |
#define TARGET_EADDRINUSE 125 /* Address already in use */ |
|
145 |
#undef TARGET_EADDRNOTAVAIL |
|
146 |
#define TARGET_EADDRNOTAVAIL 126 /* Cannot assign requested address */ |
|
147 |
#undef TARGET_ENETDOWN |
|
148 |
#define TARGET_ENETDOWN 127 /* Network is down */ |
|
149 |
#undef TARGET_ENETUNREACH |
|
150 |
#define TARGET_ENETUNREACH 128 /* Network is unreachable */ |
|
151 |
#undef TARGET_ENETRESET |
|
152 |
#define TARGET_ENETRESET 129 /* Network dropped connection because of reset */ |
|
153 |
#undef TARGET_ECONNABORTED |
|
154 |
#define TARGET_ECONNABORTED 130 /* Software caused connection abort */ |
|
155 |
#undef TARGET_ECONNRESET |
|
156 |
#define TARGET_ECONNRESET 131 /* Connection reset by peer */ |
|
157 |
#undef TARGET_ENOBUFS |
|
158 |
#define TARGET_ENOBUFS 132 /* No buffer space available */ |
|
159 |
#undef TARGET_EISCONN |
|
160 |
#define TARGET_EISCONN 133 /* Transport endpoint is already connected */ |
|
161 |
#undef TARGET_ENOTCONN |
|
162 |
#define TARGET_ENOTCONN 134 /* Transport endpoint is not connected */ |
|
163 |
#undef TARGET_EUCLEAN |
|
164 |
#define TARGET_EUCLEAN 135 /* Structure needs cleaning */ |
|
165 |
#undef TARGET_ENOTNAM |
|
166 |
#define TARGET_ENOTNAM 137 /* Not a XENIX named type file */ |
|
167 |
#undef TARGET_ENAVAIL |
|
168 |
#define TARGET_ENAVAIL 138 /* No XENIX semaphores available */ |
|
169 |
#undef TARGET_EISNAM |
|
170 |
#define TARGET_EISNAM 139 /* Is a named type file */ |
|
171 |
#undef TARGET_EREMOTEIO |
|
172 |
#define TARGET_EREMOTEIO 140 /* Remote I/O error */ |
|
173 |
#undef TARGET_EINIT |
|
174 |
#define TARGET_EINIT 141 /* Reserved */ |
|
175 |
#undef TARGET_EREMDEV |
|
176 |
#define TARGET_EREMDEV 142 /* TARGET_Error 142 */ |
|
177 |
#undef TARGET_ESHUTDOWN |
|
178 |
#define TARGET_ESHUTDOWN 143 /* Cannot send after transport endpoint shutdown */ |
|
179 |
#undef TARGET_ETOOMANYREFS |
|
180 |
#define TARGET_ETOOMANYREFS 144 /* Too many references: cannot splice */ |
|
181 |
#undef TARGET_ETIMEDOUT |
|
182 |
#define TARGET_ETIMEDOUT 145 /* Connection timed out */ |
|
183 |
#undef TARGET_ECONNREFUSED |
|
184 |
#define TARGET_ECONNREFUSED 146 /* Connection refused */ |
|
185 |
#undef TARGET_EHOSTDOWN |
|
186 |
#define TARGET_EHOSTDOWN 147 /* Host is down */ |
|
187 |
#undef TARGET_EHOSTUNREACH |
|
188 |
#define TARGET_EHOSTUNREACH 148 /* No route to host */ |
|
189 |
#undef TARGET_EALREADY |
|
190 |
#define TARGET_EALREADY 149 /* Operation already in progress */ |
|
191 |
#undef TARGET_EINPROGRESS |
|
192 |
#define TARGET_EINPROGRESS 150 /* Operation now in progress */ |
|
193 |
#undef TARGET_ESTALE |
|
194 |
#define TARGET_ESTALE 151 /* Stale NFS file handle */ |
|
195 |
#undef TARGET_ECANCELED |
|
196 |
#define TARGET_ECANCELED 158 /* AIO operation canceled */ |
|
197 |
/* |
|
198 |
* These error are Linux extensions. |
|
199 |
*/ |
|
200 |
#undef TARGET_ENOMEDIUM |
|
201 |
#define TARGET_ENOMEDIUM 159 /* No medium found */ |
|
202 |
#undef TARGET_EMEDIUMTYPE |
|
203 |
#define TARGET_EMEDIUMTYPE 160 /* Wrong medium type */ |
|
204 |
#undef TARGET_ENOKEY |
|
205 |
#define TARGET_ENOKEY 161 /* Required key not available */ |
|
206 |
#undef TARGET_EKEYEXPIRED |
|
207 |
#define TARGET_EKEYEXPIRED 162 /* Key has expired */ |
|
208 |
#undef TARGET_EKEYREVOKED |
|
209 |
#define TARGET_EKEYREVOKED 163 /* Key has been revoked */ |
|
210 |
#undef TARGET_EKEYREJECTED |
|
211 |
#define TARGET_EKEYREJECTED 164 /* Key was rejected by service */ |
|
212 |
|
|
213 |
/* for robust mutexes */ |
|
214 |
#undef TARGET_EOWNERDEAD |
|
215 |
#define TARGET_EOWNERDEAD 165 /* Owner died */ |
|
216 |
#undef TARGET_ENOTRECOVERABLE |
|
217 |
#define TARGET_ENOTRECOVERABLE 166 /* State not recoverable */ |
|
218 |
|
|
219 |
|
|
220 |
|
|
221 |
#define UNAME_MACHINE "mips64" |
b/linux-user/mipsn32/syscall_nr.h | ||
---|---|---|
1 |
/* |
|
2 |
* Linux N32 syscalls are in the range from 6000 to 6999. |
|
3 |
*/ |
|
4 |
#define TARGET_NR_Linux 6000 |
|
5 |
#define TARGET_NR_read (TARGET_NR_Linux + 0) |
|
6 |
#define TARGET_NR_write (TARGET_NR_Linux + 1) |
|
7 |
#define TARGET_NR_open (TARGET_NR_Linux + 2) |
|
8 |
#define TARGET_NR_close (TARGET_NR_Linux + 3) |
|
9 |
#define TARGET_NR_stat (TARGET_NR_Linux + 4) |
|
10 |
#define TARGET_NR_fstat (TARGET_NR_Linux + 5) |
|
11 |
#define TARGET_NR_lstat (TARGET_NR_Linux + 6) |
|
12 |
#define TARGET_NR_poll (TARGET_NR_Linux + 7) |
|
13 |
#define TARGET_NR_lseek (TARGET_NR_Linux + 8) |
|
14 |
#define TARGET_NR_mmap (TARGET_NR_Linux + 9) |
|
15 |
#define TARGET_NR_mprotect (TARGET_NR_Linux + 10) |
|
16 |
#define TARGET_NR_munmap (TARGET_NR_Linux + 11) |
|
17 |
#define TARGET_NR_brk (TARGET_NR_Linux + 12) |
|
18 |
#define TARGET_NR_rt_sigaction (TARGET_NR_Linux + 13) |
|
19 |
#define TARGET_NR_rt_sigprocmask (TARGET_NR_Linux + 14) |
|
20 |
#define TARGET_NR_ioctl (TARGET_NR_Linux + 15) |
|
21 |
#define TARGET_NR_pread64 (TARGET_NR_Linux + 16) |
|
22 |
#define TARGET_NR_pwrite64 (TARGET_NR_Linux + 17) |
|
23 |
#define TARGET_NR_readv (TARGET_NR_Linux + 18) |
|
24 |
#define TARGET_NR_writev (TARGET_NR_Linux + 19) |
|
25 |
#define TARGET_NR_access (TARGET_NR_Linux + 20) |
|
26 |
#define TARGET_NR_pipe (TARGET_NR_Linux + 21) |
|
27 |
#define TARGET_NR__newselect (TARGET_NR_Linux + 22) |
|
28 |
#define TARGET_NR_sched_yield (TARGET_NR_Linux + 23) |
|
29 |
#define TARGET_NR_mremap (TARGET_NR_Linux + 24) |
|
30 |
#define TARGET_NR_msync (TARGET_NR_Linux + 25) |
|
31 |
#define TARGET_NR_mincore (TARGET_NR_Linux + 26) |
|
32 |
#define TARGET_NR_madvise (TARGET_NR_Linux + 27) |
|
33 |
#define TARGET_NR_shmget (TARGET_NR_Linux + 28) |
|
34 |
#define TARGET_NR_shmat (TARGET_NR_Linux + 29) |
|
35 |
#define TARGET_NR_shmctl (TARGET_NR_Linux + 30) |
|
36 |
#define TARGET_NR_dup (TARGET_NR_Linux + 31) |
|
37 |
#define TARGET_NR_dup2 (TARGET_NR_Linux + 32) |
|
38 |
#define TARGET_NR_pause (TARGET_NR_Linux + 33) |
|
39 |
#define TARGET_NR_nanosleep (TARGET_NR_Linux + 34) |
|
40 |
#define TARGET_NR_getitimer (TARGET_NR_Linux + 35) |
|
41 |
#define TARGET_NR_setitimer (TARGET_NR_Linux + 36) |
|
42 |
#define TARGET_NR_alarm (TARGET_NR_Linux + 37) |
|
43 |
#define TARGET_NR_getpid (TARGET_NR_Linux + 38) |
|
44 |
#define TARGET_NR_sendfile (TARGET_NR_Linux + 39) |
|
45 |
#define TARGET_NR_socket (TARGET_NR_Linux + 40) |
|
46 |
#define TARGET_NR_connect (TARGET_NR_Linux + 41) |
|
47 |
#define TARGET_NR_accept (TARGET_NR_Linux + 42) |
|
48 |
#define TARGET_NR_sendto (TARGET_NR_Linux + 43) |
|
49 |
#define TARGET_NR_recvfrom (TARGET_NR_Linux + 44) |
|
50 |
#define TARGET_NR_sendmsg (TARGET_NR_Linux + 45) |
|
51 |
#define TARGET_NR_recvmsg (TARGET_NR_Linux + 46) |
|
52 |
#define TARGET_NR_shutdown (TARGET_NR_Linux + 47) |
|
53 |
#define TARGET_NR_bind (TARGET_NR_Linux + 48) |
|
54 |
#define TARGET_NR_listen (TARGET_NR_Linux + 49) |
|
55 |
#define TARGET_NR_getsockname (TARGET_NR_Linux + 50) |
|
56 |
#define TARGET_NR_getpeername (TARGET_NR_Linux + 51) |
|
57 |
#define TARGET_NR_socketpair (TARGET_NR_Linux + 52) |
|
58 |
#define TARGET_NR_setsockopt (TARGET_NR_Linux + 53) |
|
59 |
#define TARGET_NR_getsockopt (TARGET_NR_Linux + 54) |
|
60 |
#define TARGET_NR_clone (TARGET_NR_Linux + 55) |
|
61 |
#define TARGET_NR_fork (TARGET_NR_Linux + 56) |
|
62 |
#define TARGET_NR_execve (TARGET_NR_Linux + 57) |
|
63 |
#define TARGET_NR_exit (TARGET_NR_Linux + 58) |
|
64 |
#define TARGET_NR_wait4 (TARGET_NR_Linux + 59) |
|
65 |
#define TARGET_NR_kill (TARGET_NR_Linux + 60) |
|
66 |
#define TARGET_NR_uname (TARGET_NR_Linux + 61) |
|
67 |
#define TARGET_NR_semget (TARGET_NR_Linux + 62) |
|
68 |
#define TARGET_NR_semop (TARGET_NR_Linux + 63) |
|
69 |
#define TARGET_NR_semctl (TARGET_NR_Linux + 64) |
|
70 |
#define TARGET_NR_shmdt (TARGET_NR_Linux + 65) |
|
71 |
#define TARGET_NR_msgget (TARGET_NR_Linux + 66) |
|
72 |
#define TARGET_NR_msgsnd (TARGET_NR_Linux + 67) |
|
73 |
#define TARGET_NR_msgrcv (TARGET_NR_Linux + 68) |
|
74 |
#define TARGET_NR_msgctl (TARGET_NR_Linux + 69) |
|
75 |
#define TARGET_NR_fcntl (TARGET_NR_Linux + 70) |
|
76 |
#define TARGET_NR_flock (TARGET_NR_Linux + 71) |
|
77 |
#define TARGET_NR_fsync (TARGET_NR_Linux + 72) |
|
78 |
#define TARGET_NR_fdatasync (TARGET_NR_Linux + 73) |
|
79 |
#define TARGET_NR_truncate (TARGET_NR_Linux + 74) |
|
80 |
#define TARGET_NR_ftruncate (TARGET_NR_Linux + 75) |
|
81 |
#define TARGET_NR_getdents (TARGET_NR_Linux + 76) |
|
82 |
#define TARGET_NR_getcwd (TARGET_NR_Linux + 77) |
|
83 |
#define TARGET_NR_chdir (TARGET_NR_Linux + 78) |
|
84 |
#define TARGET_NR_fchdir (TARGET_NR_Linux + 79) |
|
85 |
#define TARGET_NR_rename (TARGET_NR_Linux + 80) |
|
86 |
#define TARGET_NR_mkdir (TARGET_NR_Linux + 81) |
|
87 |
#define TARGET_NR_rmdir (TARGET_NR_Linux + 82) |
|
88 |
#define TARGET_NR_creat (TARGET_NR_Linux + 83) |
|
89 |
#define TARGET_NR_link (TARGET_NR_Linux + 84) |
|
90 |
#define TARGET_NR_unlink (TARGET_NR_Linux + 85) |
|
91 |
#define TARGET_NR_symlink (TARGET_NR_Linux + 86) |
|
92 |
#define TARGET_NR_readlink (TARGET_NR_Linux + 87) |
|
93 |
#define TARGET_NR_chmod (TARGET_NR_Linux + 88) |
|
94 |
#define TARGET_NR_fchmod (TARGET_NR_Linux + 89) |
|
95 |
#define TARGET_NR_chown (TARGET_NR_Linux + 90) |
|
96 |
#define TARGET_NR_fchown (TARGET_NR_Linux + 91) |
|
97 |
#define TARGET_NR_lchown (TARGET_NR_Linux + 92) |
|
98 |
#define TARGET_NR_umask (TARGET_NR_Linux + 93) |
|
99 |
#define TARGET_NR_gettimeofday (TARGET_NR_Linux + 94) |
|
100 |
#define TARGET_NR_getrlimit (TARGET_NR_Linux + 95) |
|
101 |
#define TARGET_NR_getrusage (TARGET_NR_Linux + 96) |
|
102 |
#define TARGET_NR_sysinfo (TARGET_NR_Linux + 97) |
|
103 |
#define TARGET_NR_times (TARGET_NR_Linux + 98) |
|
104 |
#define TARGET_NR_ptrace (TARGET_NR_Linux + 99) |
|
105 |
#define TARGET_NR_getuid (TARGET_NR_Linux + 100) |
|
106 |
#define TARGET_NR_syslog (TARGET_NR_Linux + 101) |
|
107 |
#define TARGET_NR_getgid (TARGET_NR_Linux + 102) |
|
108 |
#define TARGET_NR_setuid (TARGET_NR_Linux + 103) |
|
109 |
#define TARGET_NR_setgid (TARGET_NR_Linux + 104) |
|
110 |
#define TARGET_NR_geteuid (TARGET_NR_Linux + 105) |
|
111 |
#define TARGET_NR_getegid (TARGET_NR_Linux + 106) |
|
112 |
#define TARGET_NR_setpgid (TARGET_NR_Linux + 107) |
|
113 |
#define TARGET_NR_getppid (TARGET_NR_Linux + 108) |
|
114 |
#define TARGET_NR_getpgrp (TARGET_NR_Linux + 109) |
|
115 |
#define TARGET_NR_setsid (TARGET_NR_Linux + 110) |
|
116 |
#define TARGET_NR_setreuid (TARGET_NR_Linux + 111) |
|
117 |
#define TARGET_NR_setregid (TARGET_NR_Linux + 112) |
|
118 |
#define TARGET_NR_getgroups (TARGET_NR_Linux + 113) |
|
119 |
#define TARGET_NR_setgroups (TARGET_NR_Linux + 114) |
|
120 |
#define TARGET_NR_setresuid (TARGET_NR_Linux + 115) |
|
121 |
#define TARGET_NR_getresuid (TARGET_NR_Linux + 116) |
|
122 |
#define TARGET_NR_setresgid (TARGET_NR_Linux + 117) |
|
123 |
#define TARGET_NR_getresgid (TARGET_NR_Linux + 118) |
|
124 |
#define TARGET_NR_getpgid (TARGET_NR_Linux + 119) |
|
125 |
#define TARGET_NR_setfsuid (TARGET_NR_Linux + 120) |
|
126 |
#define TARGET_NR_setfsgid (TARGET_NR_Linux + 121) |
|
127 |
#define TARGET_NR_getsid (TARGET_NR_Linux + 122) |
|
128 |
#define TARGET_NR_capget (TARGET_NR_Linux + 123) |
|
129 |
#define TARGET_NR_capset (TARGET_NR_Linux + 124) |
|
130 |
#define TARGET_NR_rt_sigpending (TARGET_NR_Linux + 125) |
|
131 |
#define TARGET_NR_rt_sigtimedwait (TARGET_NR_Linux + 126) |
|
132 |
#define TARGET_NR_rt_sigqueueinfo (TARGET_NR_Linux + 127) |
|
133 |
#define TARGET_NR_rt_sigsuspend (TARGET_NR_Linux + 128) |
|
134 |
#define TARGET_NR_sigaltstack (TARGET_NR_Linux + 129) |
|
135 |
#define TARGET_NR_utime (TARGET_NR_Linux + 130) |
|
136 |
#define TARGET_NR_mknod (TARGET_NR_Linux + 131) |
|
137 |
#define TARGET_NR_personality (TARGET_NR_Linux + 132) |
|
138 |
#define TARGET_NR_ustat (TARGET_NR_Linux + 133) |
|
139 |
#define TARGET_NR_statfs (TARGET_NR_Linux + 134) |
|
140 |
#define TARGET_NR_fstatfs (TARGET_NR_Linux + 135) |
|
141 |
#define TARGET_NR_sysfs (TARGET_NR_Linux + 136) |
|
142 |
#define TARGET_NR_getpriority (TARGET_NR_Linux + 137) |
|
143 |
#define TARGET_NR_setpriority (TARGET_NR_Linux + 138) |
|
144 |
#define TARGET_NR_sched_setparam (TARGET_NR_Linux + 139) |
|
145 |
#define TARGET_NR_sched_getparam (TARGET_NR_Linux + 140) |
|
146 |
#define TARGET_NR_sched_setscheduler (TARGET_NR_Linux + 141) |
|
147 |
#define TARGET_NR_sched_getscheduler (TARGET_NR_Linux + 142) |
|
148 |
#define TARGET_NR_sched_get_priority_max (TARGET_NR_Linux + 143) |
|
149 |
#define TARGET_NR_sched_get_priority_min (TARGET_NR_Linux + 144) |
|
150 |
#define TARGET_NR_sched_rr_get_interval (TARGET_NR_Linux + 145) |
|
151 |
#define TARGET_NR_mlock (TARGET_NR_Linux + 146) |
|
152 |
#define TARGET_NR_munlock (TARGET_NR_Linux + 147) |
|
153 |
#define TARGET_NR_mlockall (TARGET_NR_Linux + 148) |
|
154 |
#define TARGET_NR_munlockall (TARGET_NR_Linux + 149) |
|
155 |
#define TARGET_NR_vhangup (TARGET_NR_Linux + 150) |
|
156 |
#define TARGET_NR_pivot_root (TARGET_NR_Linux + 151) |
|
157 |
#define TARGET_NR__sysctl (TARGET_NR_Linux + 152) |
|
158 |
#define TARGET_NR_prctl (TARGET_NR_Linux + 153) |
|
159 |
#define TARGET_NR_adjtimex (TARGET_NR_Linux + 154) |
|
160 |
#define TARGET_NR_setrlimit (TARGET_NR_Linux + 155) |
|
161 |
#define TARGET_NR_chroot (TARGET_NR_Linux + 156) |
|
162 |
#define TARGET_NR_sync (TARGET_NR_Linux + 157) |
|
163 |
#define TARGET_NR_acct (TARGET_NR_Linux + 158) |
|
164 |
#define TARGET_NR_settimeofday (TARGET_NR_Linux + 159) |
|
165 |
#define TARGET_NR_mount (TARGET_NR_Linux + 160) |
|
166 |
#define TARGET_NR_umount2 (TARGET_NR_Linux + 161) |
|
167 |
#define TARGET_NR_swapon (TARGET_NR_Linux + 162) |
|
168 |
#define TARGET_NR_swapoff (TARGET_NR_Linux + 163) |
|
169 |
#define TARGET_NR_reboot (TARGET_NR_Linux + 164) |
|
170 |
#define TARGET_NR_sethostname (TARGET_NR_Linux + 165) |
|
171 |
#define TARGET_NR_setdomainname (TARGET_NR_Linux + 166) |
|
172 |
#define TARGET_NR_create_module (TARGET_NR_Linux + 167) |
|
173 |
#define TARGET_NR_init_module (TARGET_NR_Linux + 168) |
|
174 |
#define TARGET_NR_delete_module (TARGET_NR_Linux + 169) |
|
175 |
#define TARGET_NR_get_kernel_syms (TARGET_NR_Linux + 170) |
|
176 |
#define TARGET_NR_query_module (TARGET_NR_Linux + 171) |
|
177 |
#define TARGET_NR_quotactl (TARGET_NR_Linux + 172) |
|
178 |
#define TARGET_NR_nfsservctl (TARGET_NR_Linux + 173) |
|
179 |
#define TARGET_NR_getpmsg (TARGET_NR_Linux + 174) |
|
180 |
#define TARGET_NR_putpmsg (TARGET_NR_Linux + 175) |
|
181 |
#define TARGET_NR_afs_syscall (TARGET_NR_Linux + 176) |
|
182 |
#define TARGET_NR_reserved177 (TARGET_NR_Linux + 177) |
|
183 |
#define TARGET_NR_gettid (TARGET_NR_Linux + 178) |
|
184 |
#define TARGET_NR_readahead (TARGET_NR_Linux + 179) |
|
185 |
#define TARGET_NR_setxattr (TARGET_NR_Linux + 180) |
|
186 |
#define TARGET_NR_lsetxattr (TARGET_NR_Linux + 181) |
|
187 |
#define TARGET_NR_fsetxattr (TARGET_NR_Linux + 182) |
|
188 |
#define TARGET_NR_getxattr (TARGET_NR_Linux + 183) |
|
189 |
#define TARGET_NR_lgetxattr (TARGET_NR_Linux + 184) |
|
190 |
#define TARGET_NR_fgetxattr (TARGET_NR_Linux + 185) |
|
191 |
#define TARGET_NR_listxattr (TARGET_NR_Linux + 186) |
|
192 |
#define TARGET_NR_llistxattr (TARGET_NR_Linux + 187) |
|
193 |
#define TARGET_NR_flistxattr (TARGET_NR_Linux + 188) |
|
194 |
#define TARGET_NR_removexattr (TARGET_NR_Linux + 189) |
|
195 |
#define TARGET_NR_lremovexattr (TARGET_NR_Linux + 190) |
|
196 |
#define TARGET_NR_fremovexattr (TARGET_NR_Linux + 191) |
|
197 |
#define TARGET_NR_tkill (TARGET_NR_Linux + 192) |
|
198 |
#define TARGET_NR_reserved193 (TARGET_NR_Linux + 193) |
|
199 |
#define TARGET_NR_futex (TARGET_NR_Linux + 194) |
|
200 |
#define TARGET_NR_sched_setaffinity (TARGET_NR_Linux + 195) |
|
201 |
#define TARGET_NR_sched_getaffinity (TARGET_NR_Linux + 196) |
|
202 |
#define TARGET_NR_cacheflush (TARGET_NR_Linux + 197) |
|
203 |
#define TARGET_NR_cachectl (TARGET_NR_Linux + 198) |
|
204 |
#define TARGET_NR_sysmips (TARGET_NR_Linux + 199) |
|
205 |
#define TARGET_NR_io_setup (TARGET_NR_Linux + 200) |
|
206 |
#define TARGET_NR_io_destroy (TARGET_NR_Linux + 201) |
|
207 |
#define TARGET_NR_io_getevents (TARGET_NR_Linux + 202) |
|
208 |
#define TARGET_NR_io_submit (TARGET_NR_Linux + 203) |
|
209 |
#define TARGET_NR_io_cancel (TARGET_NR_Linux + 204) |
|
210 |
#define TARGET_NR_exit_group (TARGET_NR_Linux + 205) |
|
211 |
#define TARGET_NR_lookup_dcookie (TARGET_NR_Linux + 206) |
|
212 |
#define TARGET_NR_epoll_create (TARGET_NR_Linux + 207) |
|
213 |
#define TARGET_NR_epoll_ctl (TARGET_NR_Linux + 208) |
|
214 |
#define TARGET_NR_epoll_wait (TARGET_NR_Linux + 209) |
|
215 |
#define TARGET_NR_remap_file_pages (TARGET_NR_Linux + 210) |
|
216 |
#define TARGET_NR_rt_sigreturn (TARGET_NR_Linux + 211) |
|
217 |
#define TARGET_NR_fcntl64 (TARGET_NR_Linux + 212) |
|
218 |
#define TARGET_NR_set_tid_address (TARGET_NR_Linux + 213) |
|
219 |
#define TARGET_NR_restart_syscall (TARGET_NR_Linux + 214) |
|
220 |
#define TARGET_NR_semtimedop (TARGET_NR_Linux + 215) |
|
221 |
#define TARGET_NR_fadvise64 (TARGET_NR_Linux + 216) |
|
222 |
#define TARGET_NR_statfs64 (TARGET_NR_Linux + 217) |
|
223 |
#define TARGET_NR_fstatfs64 (TARGET_NR_Linux + 218) |
|
224 |
#define TARGET_NR_sendfile64 (TARGET_NR_Linux + 219) |
|
225 |
#define TARGET_NR_timer_create (TARGET_NR_Linux + 220) |
|
226 |
#define TARGET_NR_timer_settime (TARGET_NR_Linux + 221) |
|
227 |
#define TARGET_NR_timer_gettime (TARGET_NR_Linux + 222) |
|
228 |
#define TARGET_NR_timer_getoverrun (TARGET_NR_Linux + 223) |
|
229 |
#define TARGET_NR_timer_delete (TARGET_NR_Linux + 224) |
|
230 |
#define TARGET_NR_clock_settime (TARGET_NR_Linux + 225) |
|
231 |
#define TARGET_NR_clock_gettime (TARGET_NR_Linux + 226) |
|
232 |
#define TARGET_NR_clock_getres (TARGET_NR_Linux + 227) |
|
233 |
#define TARGET_NR_clock_nanosleep (TARGET_NR_Linux + 228) |
|
234 |
#define TARGET_NR_tgkill (TARGET_NR_Linux + 229) |
|
235 |
#define TARGET_NR_utimes (TARGET_NR_Linux + 230) |
|
236 |
#define TARGET_NR_mbind (TARGET_NR_Linux + 231) |
|
237 |
#define TARGET_NR_get_mempolicy (TARGET_NR_Linux + 232) |
|
238 |
#define TARGET_NR_set_mempolicy (TARGET_NR_Linux + 233) |
|
239 |
#define TARGET_NR_mq_open (TARGET_NR_Linux + 234) |
|
240 |
#define TARGET_NR_mq_unlink (TARGET_NR_Linux + 235) |
|
241 |
#define TARGET_NR_mq_timedsend (TARGET_NR_Linux + 236) |
|
242 |
#define TARGET_NR_mq_timedreceive (TARGET_NR_Linux + 237) |
|
243 |
#define TARGET_NR_mq_notify (TARGET_NR_Linux + 238) |
|
244 |
#define TARGET_NR_mq_getsetattr (TARGET_NR_Linux + 239) |
|
245 |
#define TARGET_NR_vserver (TARGET_NR_Linux + 240) |
|
246 |
#define TARGET_NR_waitid (TARGET_NR_Linux + 241) |
|
247 |
/* #define TARGET_NR_sys_setaltroot (TARGET_NR_Linux + 242) */ |
|
248 |
#define TARGET_NR_add_key (TARGET_NR_Linux + 243) |
|
249 |
#define TARGET_NR_request_key (TARGET_NR_Linux + 244) |
|
250 |
#define TARGET_NR_keyctl (TARGET_NR_Linux + 245) |
|
251 |
#define TARGET_NR_set_thread_area (TARGET_NR_Linux + 246) |
|
252 |
#define TARGET_NR_inotify_init (TARGET_NR_Linux + 247) |
|
253 |
#define TARGET_NR_inotify_add_watch (TARGET_NR_Linux + 248) |
|
254 |
#define TARGET_NR_inotify_rm_watch (TARGET_NR_Linux + 249) |
|
255 |
#define TARGET_NR_migrate_pages (TARGET_NR_Linux + 250) |
|
256 |
#define TARGET_NR_openat (TARGET_NR_Linux + 251) |
|
257 |
#define TARGET_NR_mkdirat (TARGET_NR_Linux + 252) |
|
258 |
#define TARGET_NR_mknodat (TARGET_NR_Linux + 253) |
|
259 |
#define TARGET_NR_fchownat (TARGET_NR_Linux + 254) |
|
260 |
#define TARGET_NR_futimesat (TARGET_NR_Linux + 255) |
|
261 |
#define TARGET_NR_newfstatat (TARGET_NR_Linux + 256) |
|
262 |
#define TARGET_NR_unlinkat (TARGET_NR_Linux + 257) |
|
263 |
#define TARGET_NR_renameat (TARGET_NR_Linux + 258) |
|
264 |
#define TARGET_NR_linkat (TARGET_NR_Linux + 259) |
|
265 |
#define TARGET_NR_symlinkat (TARGET_NR_Linux + 260) |
|
266 |
#define TARGET_NR_readlinkat (TARGET_NR_Linux + 261) |
|
267 |
#define TARGET_NR_fchmodat (TARGET_NR_Linux + 262) |
|
268 |
#define TARGET_NR_faccessat (TARGET_NR_Linux + 263) |
|
269 |
#define TARGET_NR_pselect6 (TARGET_NR_Linux + 264) |
|
270 |
#define TARGET_NR_ppoll (TARGET_NR_Linux + 265) |
|
271 |
#define TARGET_NR_unshare (TARGET_NR_Linux + 266) |
|
272 |
#define TARGET_NR_splice (TARGET_NR_Linux + 267) |
|
273 |
#define TARGET_NR_sync_file_range (TARGET_NR_Linux + 268) |
|
274 |
#define TARGET_NR_tee (TARGET_NR_Linux + 269) |
|
275 |
#define TARGET_NR_vmsplice (TARGET_NR_Linux + 270) |
|
276 |
#define TARGET_NR_move_pages (TARGET_NR_Linux + 271) |
|
277 |
#define TARGET_NR_set_robust_list (TARGET_NR_Linux + 272) |
|
278 |
#define TARGET_NR_get_robust_list (TARGET_NR_Linux + 273) |
|
279 |
#define TARGET_NR_kexec_load (TARGET_NR_Linux + 274) |
|
280 |
#define TARGET_NR_getcpu (TARGET_NR_Linux + 275) |
|
281 |
#define TARGET_NR_epoll_pwait (TARGET_NR_Linux + 276) |
|
282 |
#define TARGET_NR_ioprio_set (TARGET_NR_Linux + 277) |
|
283 |
#define TARGET_NR_ioprio_get (TARGET_NR_Linux + 278) |
|
284 |
#define TARGET_NR_utimensat (TARGET_NR_Linux + 279) |
|
285 |
#define TARGET_NR_signalfd (TARGET_NR_Linux + 280) |
|
286 |
#define TARGET_NR_timerfd (TARGET_NR_Linux + 281) |
|
287 |
#define TARGET_NR_eventfd (TARGET_NR_Linux + 282) |
|
288 |
#define TARGET_NR_fallocate (TARGET_NR_Linux + 283) |
b/linux-user/mipsn32/target_signal.h | ||
---|---|---|
1 |
#ifndef TARGET_SIGNAL_H |
|
2 |
#define TARGET_SIGNAL_H |
|
3 |
|
|
4 |
#include "cpu.h" |
|
5 |
|
|
6 |
/* this struct defines a stack used during syscall handling */ |
|
7 |
|
|
8 |
typedef struct target_sigaltstack { |
|
9 |
int32_t ss_sp; |
|
10 |
uint32_t ss_size; |
|
11 |
int32_t ss_flags; |
|
12 |
} target_stack_t; |
|
13 |
|
|
14 |
|
|
15 |
/* |
|
16 |
* sigaltstack controls |
|
17 |
*/ |
|
18 |
#define TARGET_SS_ONSTACK 1 |
|
19 |
#define TARGET_SS_DISABLE 2 |
|
20 |
|
|
21 |
#define TARGET_MINSIGSTKSZ 2048 |
|
22 |
#define TARGET_SIGSTKSZ 8192 |
|
23 |
|
|
24 |
static inline target_ulong get_sp_from_cpustate(CPUMIPSState *state) |
|
25 |
{ |
|
26 |
return state->gpr[29][state->current_tc]; |
|
27 |
} |
|
28 |
|
|
29 |
#endif /* TARGET_SIGNAL_H */ |
Also available in: Unified diff