diff options
Diffstat (limited to 'include/asm-mips/unistd.h')
-rw-r--r-- | include/asm-mips/unistd.h | 63 |
1 files changed, 15 insertions, 48 deletions
diff --git a/include/asm-mips/unistd.h b/include/asm-mips/unistd.h index 610ccb8a50b3..685c91467e63 100644 --- a/include/asm-mips/unistd.h +++ b/include/asm-mips/unistd.h | |||
@@ -313,7 +313,7 @@ | |||
313 | #define __NR_mknodat (__NR_Linux + 290) | 313 | #define __NR_mknodat (__NR_Linux + 290) |
314 | #define __NR_fchownat (__NR_Linux + 291) | 314 | #define __NR_fchownat (__NR_Linux + 291) |
315 | #define __NR_futimesat (__NR_Linux + 292) | 315 | #define __NR_futimesat (__NR_Linux + 292) |
316 | #define __NR_fstatat (__NR_Linux + 293) | 316 | #define __NR_fstatat64 (__NR_Linux + 293) |
317 | #define __NR_unlinkat (__NR_Linux + 294) | 317 | #define __NR_unlinkat (__NR_Linux + 294) |
318 | #define __NR_renameat (__NR_Linux + 295) | 318 | #define __NR_renameat (__NR_Linux + 295) |
319 | #define __NR_linkat (__NR_Linux + 296) | 319 | #define __NR_linkat (__NR_Linux + 296) |
@@ -329,16 +329,18 @@ | |||
329 | #define __NR_tee (__NR_Linux + 306) | 329 | #define __NR_tee (__NR_Linux + 306) |
330 | #define __NR_vmsplice (__NR_Linux + 307) | 330 | #define __NR_vmsplice (__NR_Linux + 307) |
331 | #define __NR_move_pages (__NR_Linux + 308) | 331 | #define __NR_move_pages (__NR_Linux + 308) |
332 | #define __NR_set_robust_list (__NR_Linux + 309) | ||
333 | #define __NR_get_robust_list (__NR_Linux + 310) | ||
332 | 334 | ||
333 | /* | 335 | /* |
334 | * Offset of the last Linux o32 flavoured syscall | 336 | * Offset of the last Linux o32 flavoured syscall |
335 | */ | 337 | */ |
336 | #define __NR_Linux_syscalls 308 | 338 | #define __NR_Linux_syscalls 310 |
337 | 339 | ||
338 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 340 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
339 | 341 | ||
340 | #define __NR_O32_Linux 4000 | 342 | #define __NR_O32_Linux 4000 |
341 | #define __NR_O32_Linux_syscalls 308 | 343 | #define __NR_O32_Linux_syscalls 310 |
342 | 344 | ||
343 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | 345 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
344 | 346 | ||
@@ -598,7 +600,7 @@ | |||
598 | #define __NR_mknodat (__NR_Linux + 249) | 600 | #define __NR_mknodat (__NR_Linux + 249) |
599 | #define __NR_fchownat (__NR_Linux + 250) | 601 | #define __NR_fchownat (__NR_Linux + 250) |
600 | #define __NR_futimesat (__NR_Linux + 251) | 602 | #define __NR_futimesat (__NR_Linux + 251) |
601 | #define __NR_fstatat (__NR_Linux + 252) | 603 | #define __NR_newfstatat (__NR_Linux + 252) |
602 | #define __NR_unlinkat (__NR_Linux + 253) | 604 | #define __NR_unlinkat (__NR_Linux + 253) |
603 | #define __NR_renameat (__NR_Linux + 254) | 605 | #define __NR_renameat (__NR_Linux + 254) |
604 | #define __NR_linkat (__NR_Linux + 255) | 606 | #define __NR_linkat (__NR_Linux + 255) |
@@ -614,16 +616,18 @@ | |||
614 | #define __NR_tee (__NR_Linux + 265) | 616 | #define __NR_tee (__NR_Linux + 265) |
615 | #define __NR_vmsplice (__NR_Linux + 266) | 617 | #define __NR_vmsplice (__NR_Linux + 266) |
616 | #define __NR_move_pages (__NR_Linux + 267) | 618 | #define __NR_move_pages (__NR_Linux + 267) |
619 | #define __NR_set_robust_list (__NR_Linux + 268) | ||
620 | #define __NR_get_robust_list (__NR_Linux + 269) | ||
617 | 621 | ||
618 | /* | 622 | /* |
619 | * Offset of the last Linux 64-bit flavoured syscall | 623 | * Offset of the last Linux 64-bit flavoured syscall |
620 | */ | 624 | */ |
621 | #define __NR_Linux_syscalls 267 | 625 | #define __NR_Linux_syscalls 269 |
622 | 626 | ||
623 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 627 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
624 | 628 | ||
625 | #define __NR_64_Linux 5000 | 629 | #define __NR_64_Linux 5000 |
626 | #define __NR_64_Linux_syscalls 267 | 630 | #define __NR_64_Linux_syscalls 269 |
627 | 631 | ||
628 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | 632 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
629 | 633 | ||
@@ -887,7 +891,7 @@ | |||
887 | #define __NR_mknodat (__NR_Linux + 253) | 891 | #define __NR_mknodat (__NR_Linux + 253) |
888 | #define __NR_fchownat (__NR_Linux + 254) | 892 | #define __NR_fchownat (__NR_Linux + 254) |
889 | #define __NR_futimesat (__NR_Linux + 255) | 893 | #define __NR_futimesat (__NR_Linux + 255) |
890 | #define __NR_fstatat (__NR_Linux + 256) | 894 | #define __NR_newfstatat (__NR_Linux + 256) |
891 | #define __NR_unlinkat (__NR_Linux + 257) | 895 | #define __NR_unlinkat (__NR_Linux + 257) |
892 | #define __NR_renameat (__NR_Linux + 258) | 896 | #define __NR_renameat (__NR_Linux + 258) |
893 | #define __NR_linkat (__NR_Linux + 259) | 897 | #define __NR_linkat (__NR_Linux + 259) |
@@ -903,16 +907,18 @@ | |||
903 | #define __NR_tee (__NR_Linux + 269) | 907 | #define __NR_tee (__NR_Linux + 269) |
904 | #define __NR_vmsplice (__NR_Linux + 270) | 908 | #define __NR_vmsplice (__NR_Linux + 270) |
905 | #define __NR_move_pages (__NR_Linux + 271) | 909 | #define __NR_move_pages (__NR_Linux + 271) |
910 | #define __NR_set_robust_list (__NR_Linux + 272) | ||
911 | #define __NR_get_robust_list (__NR_Linux + 273) | ||
906 | 912 | ||
907 | /* | 913 | /* |
908 | * Offset of the last N32 flavoured syscall | 914 | * Offset of the last N32 flavoured syscall |
909 | */ | 915 | */ |
910 | #define __NR_Linux_syscalls 271 | 916 | #define __NR_Linux_syscalls 273 |
911 | 917 | ||
912 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 918 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
913 | 919 | ||
914 | #define __NR_N32_Linux 6000 | 920 | #define __NR_N32_Linux 6000 |
915 | #define __NR_N32_Linux_syscalls 271 | 921 | #define __NR_N32_Linux_syscalls 273 |
916 | 922 | ||
917 | #ifdef __KERNEL__ | 923 | #ifdef __KERNEL__ |
918 | 924 | ||
@@ -1206,45 +1212,6 @@ type name (atype a,btype b,ctype c,dtype d,etype e,ftype f) \ | |||
1206 | # define __ARCH_WANT_COMPAT_SYS_TIME | 1212 | # define __ARCH_WANT_COMPAT_SYS_TIME |
1207 | # endif | 1213 | # endif |
1208 | 1214 | ||
1209 | #ifdef __KERNEL_SYSCALLS__ | ||
1210 | |||
1211 | #include <linux/compiler.h> | ||
1212 | #include <linux/types.h> | ||
1213 | #include <linux/linkage.h> | ||
1214 | #include <asm/ptrace.h> | ||
1215 | #include <asm/sim.h> | ||
1216 | |||
1217 | /* | ||
1218 | * we need this inline - forking from kernel space will result | ||
1219 | * in NO COPY ON WRITE (!!!), until an execve is executed. This | ||
1220 | * is no problem, but for the stack. This is handled by not letting | ||
1221 | * main() use the stack at all after fork(). Thus, no function | ||
1222 | * calls - which means inline code for fork too, as otherwise we | ||
1223 | * would use the stack upon exit from 'fork()'. | ||
1224 | * | ||
1225 | * Actually only pause and fork are needed inline, so that there | ||
1226 | * won't be any messing with the stack from main(), but we define | ||
1227 | * some others too. | ||
1228 | */ | ||
1229 | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) | ||
1230 | |||
1231 | asmlinkage unsigned long sys_mmap( | ||
1232 | unsigned long addr, size_t len, | ||
1233 | int prot, int flags, | ||
1234 | int fd, off_t offset); | ||
1235 | asmlinkage long sys_mmap2( | ||
1236 | unsigned long addr, unsigned long len, | ||
1237 | unsigned long prot, unsigned long flags, | ||
1238 | unsigned long fd, unsigned long pgoff); | ||
1239 | asmlinkage int sys_execve(nabi_no_regargs struct pt_regs regs); | ||
1240 | asmlinkage int sys_pipe(nabi_no_regargs struct pt_regs regs); | ||
1241 | struct sigaction; | ||
1242 | asmlinkage long sys_rt_sigaction(int sig, | ||
1243 | const struct sigaction __user *act, | ||
1244 | struct sigaction __user *oact, | ||
1245 | size_t sigsetsize); | ||
1246 | |||
1247 | #endif /* __KERNEL_SYSCALLS__ */ | ||
1248 | #endif /* !__ASSEMBLY__ */ | 1215 | #endif /* !__ASSEMBLY__ */ |
1249 | 1216 | ||
1250 | /* | 1217 | /* |