diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-02-08 08:38:50 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-02-08 12:52:25 -0500 |
commit | 72bf891421e261262c4e614c051a68093baddd21 (patch) | |
tree | ac79385833fa2ff940f078af56d418eee34eecdc | |
parent | 40ac5d479b7deb98f6ccc4a7a29ee62dba7a798f (diff) |
[MIPS] Wire up new syscalls.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
-rw-r--r-- | arch/mips/kernel/scall32-o32.S | 17 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-64.S | 17 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-n32.S | 17 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-o32.S | 17 | ||||
-rw-r--r-- | include/asm-mips/unistd.h | 64 |
5 files changed, 125 insertions, 7 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index a42e0e8caa7b..d7c4a38ed5ae 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -617,6 +617,23 @@ einval: li v0, -EINVAL | |||
617 | sys sys_inotify_init 0 | 617 | sys sys_inotify_init 0 |
618 | sys sys_inotify_add_watch 3 /* 4285 */ | 618 | sys sys_inotify_add_watch 3 /* 4285 */ |
619 | sys sys_inotify_rm_watch 2 | 619 | sys sys_inotify_rm_watch 2 |
620 | sys sys_migrate_pages 4 | ||
621 | sys sys_openat 4 | ||
622 | sys sys_mkdirat 3 | ||
623 | sys sys_mknodat 4 /* 4290 */ | ||
624 | sys sys_fchownat 5 | ||
625 | sys sys_futimesat 3 | ||
626 | sys sys_newfstatat 4 | ||
627 | sys sys_unlinkat 3 | ||
628 | sys sys_renameat 4 /* 4295 */ | ||
629 | sys sys_linkat 4 | ||
630 | sys sys_symlinkat 3 | ||
631 | sys sys_readlinkat 4 | ||
632 | sys sys_fchmodat 3 | ||
633 | sys sys_faccessat 3 /* 4300 */ | ||
634 | sys sys_pselect6 6 | ||
635 | sys sys_ppoll 5 | ||
636 | sys sys_unshare 1 | ||
620 | .endm | 637 | .endm |
621 | 638 | ||
622 | /* We pre-compute the number of _instruction_ bytes needed to | 639 | /* We pre-compute the number of _instruction_ bytes needed to |
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S index 47bfbd416709..98bf25df56f3 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
@@ -443,3 +443,20 @@ sys_call_table: | |||
443 | PTR sys_inotify_init | 443 | PTR sys_inotify_init |
444 | PTR sys_inotify_add_watch | 444 | PTR sys_inotify_add_watch |
445 | PTR sys_inotify_rm_watch /* 5245 */ | 445 | PTR sys_inotify_rm_watch /* 5245 */ |
446 | PTR sys_migrate_pages | ||
447 | PTR sys_openat | ||
448 | PTR sys_mkdirat | ||
449 | PTR sys_mknodat | ||
450 | PTR sys_fchownat /* 5250 */ | ||
451 | PTR sys_futimesat | ||
452 | PTR sys_newfstatat | ||
453 | PTR sys_unlinkat | ||
454 | PTR sys_renameat | ||
455 | PTR sys_linkat /* 5255 */ | ||
456 | PTR sys_symlinkat | ||
457 | PTR sys_readlinkat | ||
458 | PTR sys_fchmodat | ||
459 | PTR sys_faccessat | ||
460 | PTR sys_pselect6 /* 5260 */ | ||
461 | PTR sys_ppoll | ||
462 | PTR sys_unshare | ||
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index b465ced1758f..bc4980cefc8b 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -369,3 +369,20 @@ EXPORT(sysn32_call_table) | |||
369 | PTR sys_inotify_init | 369 | PTR sys_inotify_init |
370 | PTR sys_inotify_add_watch | 370 | PTR sys_inotify_add_watch |
371 | PTR sys_inotify_rm_watch | 371 | PTR sys_inotify_rm_watch |
372 | PTR sys_migrate_pages /* 6250 */ | ||
373 | PTR sys_openat | ||
374 | PTR sys_mkdirat | ||
375 | PTR sys_mknodat | ||
376 | PTR sys_fchownat | ||
377 | PTR sys_futimesat /* 6255 */ | ||
378 | PTR sys_newfstatat | ||
379 | PTR sys_unlinkat | ||
380 | PTR sys_renameat | ||
381 | PTR sys_linkat | ||
382 | PTR sys_symlinkat /* 6260 */ | ||
383 | PTR sys_readlinkat | ||
384 | PTR sys_fchmodat | ||
385 | PTR sys_faccessat | ||
386 | PTR sys_pselect6 | ||
387 | PTR sys_ppoll /* 6265 */ | ||
388 | PTR sys_unshare | ||
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index 3d338ca7eeeb..5b0414018c9a 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -491,4 +491,21 @@ sys_call_table: | |||
491 | PTR sys_inotify_init | 491 | PTR sys_inotify_init |
492 | PTR sys_inotify_add_watch /* 4285 */ | 492 | PTR sys_inotify_add_watch /* 4285 */ |
493 | PTR sys_inotify_rm_watch | 493 | PTR sys_inotify_rm_watch |
494 | PTR sys_migrate_pages | ||
495 | PTR compat_sys_openat | ||
496 | PTR sys_mkdirat | ||
497 | PTR sys_mknodat /* 4290 */ | ||
498 | PTR sys_fchownat | ||
499 | PTR compat_sys_futimesat | ||
500 | PTR compat_sys_newfstatat | ||
501 | PTR sys_unlinkat | ||
502 | PTR sys_renameat /* 4295 */ | ||
503 | PTR sys_linkat | ||
504 | PTR sys_symlinkat | ||
505 | PTR sys_readlinkat | ||
506 | PTR sys_fchmodat | ||
507 | PTR sys_faccessat /* 4300 */ | ||
508 | PTR sys_pselect6 | ||
509 | PTR sys_ppoll | ||
510 | PTR sys_unshare | ||
494 | .size sys_call_table,.-sys_call_table | 511 | .size sys_call_table,.-sys_call_table |
diff --git a/include/asm-mips/unistd.h b/include/asm-mips/unistd.h index 89ea8b60e945..e7ff9b187783 100644 --- a/include/asm-mips/unistd.h +++ b/include/asm-mips/unistd.h | |||
@@ -307,17 +307,33 @@ | |||
307 | #define __NR_inotify_init (__NR_Linux + 284) | 307 | #define __NR_inotify_init (__NR_Linux + 284) |
308 | #define __NR_inotify_add_watch (__NR_Linux + 285) | 308 | #define __NR_inotify_add_watch (__NR_Linux + 285) |
309 | #define __NR_inotify_rm_watch (__NR_Linux + 286) | 309 | #define __NR_inotify_rm_watch (__NR_Linux + 286) |
310 | 310 | #define __NR_migrate_pages (__NR_Linux + 287) | |
311 | #define __NR_openat (__NR_Linux + 288) | ||
312 | #define __NR_mkdirat (__NR_Linux + 289) | ||
313 | #define __NR_mknodat (__NR_Linux + 290) | ||
314 | #define __NR_fchownat (__NR_Linux + 291) | ||
315 | #define __NR_futimesat (__NR_Linux + 292) | ||
316 | #define __NR_newfstatat (__NR_Linux + 293) | ||
317 | #define __NR_unlinkat (__NR_Linux + 294) | ||
318 | #define __NR_renameat (__NR_Linux + 295) | ||
319 | #define __NR_linkat (__NR_Linux + 296) | ||
320 | #define __NR_symlinkat (__NR_Linux + 297) | ||
321 | #define __NR_readlinkat (__NR_Linux + 298) | ||
322 | #define __NR_fchmodat (__NR_Linux + 299) | ||
323 | #define __NR_faccessat (__NR_Linux + 300) | ||
324 | #define __NR_pselect6 (__NR_Linux + 301) | ||
325 | #define __NR_ppoll (__NR_Linux + 302) | ||
326 | #define __NR_unshare (__NR_Linux + 303) | ||
311 | 327 | ||
312 | /* | 328 | /* |
313 | * Offset of the last Linux o32 flavoured syscall | 329 | * Offset of the last Linux o32 flavoured syscall |
314 | */ | 330 | */ |
315 | #define __NR_Linux_syscalls 286 | 331 | #define __NR_Linux_syscalls 303 |
316 | 332 | ||
317 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 333 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
318 | 334 | ||
319 | #define __NR_O32_Linux 4000 | 335 | #define __NR_O32_Linux 4000 |
320 | #define __NR_O32_Linux_syscalls 283 | 336 | #define __NR_O32_Linux_syscalls 303 |
321 | 337 | ||
322 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | 338 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
323 | 339 | ||
@@ -571,16 +587,33 @@ | |||
571 | #define __NR_inotify_init (__NR_Linux + 243) | 587 | #define __NR_inotify_init (__NR_Linux + 243) |
572 | #define __NR_inotify_add_watch (__NR_Linux + 244) | 588 | #define __NR_inotify_add_watch (__NR_Linux + 244) |
573 | #define __NR_inotify_rm_watch (__NR_Linux + 245) | 589 | #define __NR_inotify_rm_watch (__NR_Linux + 245) |
590 | #define __NR_migrate_pages (__NR_Linux + 246) | ||
591 | #define __NR_openat (__NR_Linux + 247) | ||
592 | #define __NR_mkdirat (__NR_Linux + 248) | ||
593 | #define __NR_mknodat (__NR_Linux + 249) | ||
594 | #define __NR_fchownat (__NR_Linux + 250) | ||
595 | #define __NR_futimesat (__NR_Linux + 251) | ||
596 | #define __NR_newfstatat (__NR_Linux + 252) | ||
597 | #define __NR_unlinkat (__NR_Linux + 253) | ||
598 | #define __NR_renameat (__NR_Linux + 254) | ||
599 | #define __NR_linkat (__NR_Linux + 255) | ||
600 | #define __NR_symlinkat (__NR_Linux + 256) | ||
601 | #define __NR_readlinkat (__NR_Linux + 257) | ||
602 | #define __NR_fchmodat (__NR_Linux + 258) | ||
603 | #define __NR_faccessat (__NR_Linux + 259) | ||
604 | #define __NR_pselect6 (__NR_Linux + 260) | ||
605 | #define __NR_ppoll (__NR_Linux + 261) | ||
606 | #define __NR_unshare (__NR_Linux + 262) | ||
574 | 607 | ||
575 | /* | 608 | /* |
576 | * Offset of the last Linux 64-bit flavoured syscall | 609 | * Offset of the last Linux 64-bit flavoured syscall |
577 | */ | 610 | */ |
578 | #define __NR_Linux_syscalls 245 | 611 | #define __NR_Linux_syscalls 262 |
579 | 612 | ||
580 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 613 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
581 | 614 | ||
582 | #define __NR_64_Linux 5000 | 615 | #define __NR_64_Linux 5000 |
583 | #define __NR_64_Linux_syscalls 242 | 616 | #define __NR_64_Linux_syscalls 262 |
584 | 617 | ||
585 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | 618 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
586 | 619 | ||
@@ -838,16 +871,33 @@ | |||
838 | #define __NR_inotify_init (__NR_Linux + 247) | 871 | #define __NR_inotify_init (__NR_Linux + 247) |
839 | #define __NR_inotify_add_watch (__NR_Linux + 248) | 872 | #define __NR_inotify_add_watch (__NR_Linux + 248) |
840 | #define __NR_inotify_rm_watch (__NR_Linux + 249) | 873 | #define __NR_inotify_rm_watch (__NR_Linux + 249) |
874 | #define __NR_migrate_pages (__NR_Linux + 250) | ||
875 | #define __NR_openat (__NR_Linux + 251) | ||
876 | #define __NR_mkdirat (__NR_Linux + 252) | ||
877 | #define __NR_mknodat (__NR_Linux + 253) | ||
878 | #define __NR_fchownat (__NR_Linux + 254) | ||
879 | #define __NR_futimesat (__NR_Linux + 255) | ||
880 | #define __NR_newfstatat (__NR_Linux + 256) | ||
881 | #define __NR_unlinkat (__NR_Linux + 257) | ||
882 | #define __NR_renameat (__NR_Linux + 258) | ||
883 | #define __NR_linkat (__NR_Linux + 259) | ||
884 | #define __NR_symlinkat (__NR_Linux + 260) | ||
885 | #define __NR_readlinkat (__NR_Linux + 261) | ||
886 | #define __NR_fchmodat (__NR_Linux + 262) | ||
887 | #define __NR_faccessat (__NR_Linux + 263) | ||
888 | #define __NR_pselect6 (__NR_Linux + 264) | ||
889 | #define __NR_ppoll (__NR_Linux + 265) | ||
890 | #define __NR_unshare (__NR_Linux + 266) | ||
841 | 891 | ||
842 | /* | 892 | /* |
843 | * Offset of the last N32 flavoured syscall | 893 | * Offset of the last N32 flavoured syscall |
844 | */ | 894 | */ |
845 | #define __NR_Linux_syscalls 249 | 895 | #define __NR_Linux_syscalls 266 |
846 | 896 | ||
847 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 897 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
848 | 898 | ||
849 | #define __NR_N32_Linux 6000 | 899 | #define __NR_N32_Linux 6000 |
850 | #define __NR_N32_Linux_syscalls 246 | 900 | #define __NR_N32_Linux_syscalls 266 |
851 | 901 | ||
852 | #ifndef __ASSEMBLY__ | 902 | #ifndef __ASSEMBLY__ |
853 | 903 | ||