diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2008-07-31 06:16:43 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-08-26 04:10:20 -0400 |
commit | 3885b71ba66bfd0dbe92e580c23eebaccd11248b (patch) | |
tree | f4aa560bbc7f6f3ccf983ad1699cb082ec900e86 | |
parent | a64ae7a2256b56bbd2830749c580fa533b69758c (diff) |
[MIPS] Wire up new syscalls.
signalfd4, eventfd2, epoll_create1, dup3, pipe2 and inotify_init1.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/scall32-o32.S | 6 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-64.S | 6 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-n32.S | 6 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-o32.S | 6 | ||||
-rw-r--r-- | include/asm-mips/unistd.h | 30 |
5 files changed, 48 insertions, 6 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index fc4fd4d705e2..5e75a316f6b1 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -647,6 +647,12 @@ einval: li v0, -EINVAL | |||
647 | sys sys_timerfd_create 2 | 647 | sys sys_timerfd_create 2 |
648 | sys sys_timerfd_gettime 2 | 648 | sys sys_timerfd_gettime 2 |
649 | sys sys_timerfd_settime 4 | 649 | sys sys_timerfd_settime 4 |
650 | sys sys_signalfd4 4 | ||
651 | sys sys_eventfd2 2 /* 4325 */ | ||
652 | sys sys_epoll_create1 1 | ||
653 | sys sys_dup3 3 | ||
654 | sys sys_pipe2 2 | ||
655 | sys sys_inotify_init1 1 | ||
650 | .endm | 656 | .endm |
651 | 657 | ||
652 | /* We pre-compute the number of _instruction_ bytes needed to | 658 | /* 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 2b73fd1e4528..3d58204c9d44 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
@@ -481,4 +481,10 @@ sys_call_table: | |||
481 | PTR sys_timerfd_create /* 5280 */ | 481 | PTR sys_timerfd_create /* 5280 */ |
482 | PTR sys_timerfd_gettime | 482 | PTR sys_timerfd_gettime |
483 | PTR sys_timerfd_settime | 483 | PTR sys_timerfd_settime |
484 | PTR sys_signalfd4 | ||
485 | PTR sys_eventfd2 | ||
486 | PTR sys_epoll_create1 /* 5285 */ | ||
487 | PTR sys_dup3 | ||
488 | PTR sys_pipe2 | ||
489 | PTR sys_inotify_init1 | ||
484 | .size sys_call_table,.-sys_call_table | 490 | .size sys_call_table,.-sys_call_table |
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 2654e75d2fef..da7f1b6ea0fb 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -407,4 +407,10 @@ EXPORT(sysn32_call_table) | |||
407 | PTR sys_timerfd_create | 407 | PTR sys_timerfd_create |
408 | PTR sys_timerfd_gettime /* 5285 */ | 408 | PTR sys_timerfd_gettime /* 5285 */ |
409 | PTR sys_timerfd_settime | 409 | PTR sys_timerfd_settime |
410 | PTR sys_signalfd4 | ||
411 | PTR sys_eventfd2 | ||
412 | PTR sys_epoll_create1 | ||
413 | PTR sys_dup3 /* 5290 */ | ||
414 | PTR sys_pipe2 | ||
415 | PTR sys_inotify_init1 | ||
410 | .size sysn32_call_table,.-sysn32_call_table | 416 | .size sysn32_call_table,.-sysn32_call_table |
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index 76167bea5a70..d7cd1aac9ada 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -529,4 +529,10 @@ sys_call_table: | |||
529 | PTR sys_timerfd_create | 529 | PTR sys_timerfd_create |
530 | PTR sys_timerfd_gettime | 530 | PTR sys_timerfd_gettime |
531 | PTR sys_timerfd_settime | 531 | PTR sys_timerfd_settime |
532 | PTR compat_sys_signalfd4 | ||
533 | PTR sys_eventfd2 /* 4325 */ | ||
534 | PTR sys_epoll_create1 | ||
535 | PTR sys_dup3 | ||
536 | PTR sys_pipe2 | ||
537 | PTR sys_inotify_init1 | ||
532 | .size sys_call_table,.-sys_call_table | 538 | .size sys_call_table,.-sys_call_table |
diff --git a/include/asm-mips/unistd.h b/include/asm-mips/unistd.h index 4964c82f85f9..a73e1531e151 100644 --- a/include/asm-mips/unistd.h +++ b/include/asm-mips/unistd.h | |||
@@ -344,16 +344,22 @@ | |||
344 | #define __NR_timerfd_create (__NR_Linux + 321) | 344 | #define __NR_timerfd_create (__NR_Linux + 321) |
345 | #define __NR_timerfd_gettime (__NR_Linux + 322) | 345 | #define __NR_timerfd_gettime (__NR_Linux + 322) |
346 | #define __NR_timerfd_settime (__NR_Linux + 323) | 346 | #define __NR_timerfd_settime (__NR_Linux + 323) |
347 | #define __NR_signalfd4 (__NR_Linux + 324) | ||
348 | #define __NR_eventfd2 (__NR_Linux + 325) | ||
349 | #define __NR_epoll_create1 (__NR_Linux + 326) | ||
350 | #define __NR_dup3 (__NR_Linux + 327) | ||
351 | #define __NR_pipe2 (__NR_Linux + 328) | ||
352 | #define __NR_inotify_init1 (__NR_Linux + 329) | ||
347 | 353 | ||
348 | /* | 354 | /* |
349 | * Offset of the last Linux o32 flavoured syscall | 355 | * Offset of the last Linux o32 flavoured syscall |
350 | */ | 356 | */ |
351 | #define __NR_Linux_syscalls 323 | 357 | #define __NR_Linux_syscalls 329 |
352 | 358 | ||
353 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 359 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
354 | 360 | ||
355 | #define __NR_O32_Linux 4000 | 361 | #define __NR_O32_Linux 4000 |
356 | #define __NR_O32_Linux_syscalls 323 | 362 | #define __NR_O32_Linux_syscalls 329 |
357 | 363 | ||
358 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | 364 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
359 | 365 | ||
@@ -644,16 +650,22 @@ | |||
644 | #define __NR_timerfd_create (__NR_Linux + 280) | 650 | #define __NR_timerfd_create (__NR_Linux + 280) |
645 | #define __NR_timerfd_gettime (__NR_Linux + 281) | 651 | #define __NR_timerfd_gettime (__NR_Linux + 281) |
646 | #define __NR_timerfd_settime (__NR_Linux + 282) | 652 | #define __NR_timerfd_settime (__NR_Linux + 282) |
653 | #define __NR_signalfd4 (__NR_Linux + 283) | ||
654 | #define __NR_eventfd2 (__NR_Linux + 284) | ||
655 | #define __NR_epoll_create1 (__NR_Linux + 285) | ||
656 | #define __NR_dup3 (__NR_Linux + 286) | ||
657 | #define __NR_pipe2 (__NR_Linux + 287) | ||
658 | #define __NR_inotify_init1 (__NR_Linux + 288) | ||
647 | 659 | ||
648 | /* | 660 | /* |
649 | * Offset of the last Linux 64-bit flavoured syscall | 661 | * Offset of the last Linux 64-bit flavoured syscall |
650 | */ | 662 | */ |
651 | #define __NR_Linux_syscalls 282 | 663 | #define __NR_Linux_syscalls 288 |
652 | 664 | ||
653 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 665 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
654 | 666 | ||
655 | #define __NR_64_Linux 5000 | 667 | #define __NR_64_Linux 5000 |
656 | #define __NR_64_Linux_syscalls 282 | 668 | #define __NR_64_Linux_syscalls 288 |
657 | 669 | ||
658 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | 670 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
659 | 671 | ||
@@ -948,16 +960,22 @@ | |||
948 | #define __NR_timerfd_create (__NR_Linux + 284) | 960 | #define __NR_timerfd_create (__NR_Linux + 284) |
949 | #define __NR_timerfd_gettime (__NR_Linux + 285) | 961 | #define __NR_timerfd_gettime (__NR_Linux + 285) |
950 | #define __NR_timerfd_settime (__NR_Linux + 286) | 962 | #define __NR_timerfd_settime (__NR_Linux + 286) |
963 | #define __NR_signalfd4 (__NR_Linux + 287) | ||
964 | #define __NR_eventfd2 (__NR_Linux + 288) | ||
965 | #define __NR_epoll_create1 (__NR_Linux + 289) | ||
966 | #define __NR_dup3 (__NR_Linux + 290) | ||
967 | #define __NR_pipe2 (__NR_Linux + 291) | ||
968 | #define __NR_inotify_init1 (__NR_Linux + 292) | ||
951 | 969 | ||
952 | /* | 970 | /* |
953 | * Offset of the last N32 flavoured syscall | 971 | * Offset of the last N32 flavoured syscall |
954 | */ | 972 | */ |
955 | #define __NR_Linux_syscalls 286 | 973 | #define __NR_Linux_syscalls 292 |
956 | 974 | ||
957 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 975 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
958 | 976 | ||
959 | #define __NR_N32_Linux 6000 | 977 | #define __NR_N32_Linux 6000 |
960 | #define __NR_N32_Linux_syscalls 286 | 978 | #define __NR_N32_Linux_syscalls 292 |
961 | 979 | ||
962 | #ifdef __KERNEL__ | 980 | #ifdef __KERNEL__ |
963 | 981 | ||