diff options
-rw-r--r-- | arch/mips/kernel/scall32-o32.S | 3 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-64.S | 3 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-n32.S | 3 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-o32.S | 3 | ||||
-rw-r--r-- | include/asm-mips/unistd.h | 21 |
5 files changed, 27 insertions, 6 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index f798139e888e..08a9c5070ea8 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -663,6 +663,9 @@ einval: li v0, -EINVAL | |||
663 | sys sys_ni_syscall 0 | 663 | sys sys_ni_syscall 0 |
664 | sys sys_eventfd 1 | 664 | sys sys_eventfd 1 |
665 | sys sys_fallocate 6 /* 4320 */ | 665 | sys sys_fallocate 6 /* 4320 */ |
666 | sys sys_timerfd_create 2 | ||
667 | sys sys_timerfd_gettime 2 | ||
668 | sys sys_timerfd_settime 4 | ||
666 | .endm | 669 | .endm |
667 | 670 | ||
668 | /* We pre-compute the number of _instruction_ bytes needed to | 671 | /* 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 a626be6baea3..dc597b600c68 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
@@ -478,4 +478,7 @@ sys_call_table: | |||
478 | PTR sys_ni_syscall | 478 | PTR sys_ni_syscall |
479 | PTR sys_eventfd | 479 | PTR sys_eventfd |
480 | PTR sys_fallocate | 480 | PTR sys_fallocate |
481 | PTR sys_timerfd_create /* 5280 */ | ||
482 | PTR sys_timerfd_gettime | ||
483 | PTR sys_timerfd_settime | ||
481 | .size sys_call_table,.-sys_call_table | 484 | .size sys_call_table,.-sys_call_table |
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 9d5bcaf1b389..12940eca7893 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -404,4 +404,7 @@ EXPORT(sysn32_call_table) | |||
404 | PTR sys_ni_syscall | 404 | PTR sys_ni_syscall |
405 | PTR sys_eventfd | 405 | PTR sys_eventfd |
406 | PTR sys_fallocate | 406 | PTR sys_fallocate |
407 | PTR sys_timerfd_create | ||
408 | PTR sys_timerfd_gettime /* 5285 */ | ||
409 | PTR sys_timerfd_settime | ||
407 | .size sysn32_call_table,.-sysn32_call_table | 410 | .size sysn32_call_table,.-sysn32_call_table |
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index fd2019c1ec2d..9a275efb4f04 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -526,4 +526,7 @@ sys_call_table: | |||
526 | PTR sys_ni_syscall | 526 | PTR sys_ni_syscall |
527 | PTR sys_eventfd | 527 | PTR sys_eventfd |
528 | PTR sys32_fallocate /* 4320 */ | 528 | PTR sys32_fallocate /* 4320 */ |
529 | PTR sys_timerfd_create | ||
530 | PTR sys_timerfd_gettime | ||
531 | PTR sys_timerfd_settime | ||
529 | .size sys_call_table,.-sys_call_table | 532 | .size sys_call_table,.-sys_call_table |
diff --git a/include/asm-mips/unistd.h b/include/asm-mips/unistd.h index fa9a587b3bf1..4964c82f85f9 100644 --- a/include/asm-mips/unistd.h +++ b/include/asm-mips/unistd.h | |||
@@ -341,16 +341,19 @@ | |||
341 | #define __NR_timerfd (__NR_Linux + 318) | 341 | #define __NR_timerfd (__NR_Linux + 318) |
342 | #define __NR_eventfd (__NR_Linux + 319) | 342 | #define __NR_eventfd (__NR_Linux + 319) |
343 | #define __NR_fallocate (__NR_Linux + 320) | 343 | #define __NR_fallocate (__NR_Linux + 320) |
344 | #define __NR_timerfd_create (__NR_Linux + 321) | ||
345 | #define __NR_timerfd_gettime (__NR_Linux + 322) | ||
346 | #define __NR_timerfd_settime (__NR_Linux + 323) | ||
344 | 347 | ||
345 | /* | 348 | /* |
346 | * Offset of the last Linux o32 flavoured syscall | 349 | * Offset of the last Linux o32 flavoured syscall |
347 | */ | 350 | */ |
348 | #define __NR_Linux_syscalls 320 | 351 | #define __NR_Linux_syscalls 323 |
349 | 352 | ||
350 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 353 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
351 | 354 | ||
352 | #define __NR_O32_Linux 4000 | 355 | #define __NR_O32_Linux 4000 |
353 | #define __NR_O32_Linux_syscalls 320 | 356 | #define __NR_O32_Linux_syscalls 323 |
354 | 357 | ||
355 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | 358 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
356 | 359 | ||
@@ -638,16 +641,19 @@ | |||
638 | #define __NR_timerfd (__NR_Linux + 277) | 641 | #define __NR_timerfd (__NR_Linux + 277) |
639 | #define __NR_eventfd (__NR_Linux + 278) | 642 | #define __NR_eventfd (__NR_Linux + 278) |
640 | #define __NR_fallocate (__NR_Linux + 279) | 643 | #define __NR_fallocate (__NR_Linux + 279) |
644 | #define __NR_timerfd_create (__NR_Linux + 280) | ||
645 | #define __NR_timerfd_gettime (__NR_Linux + 281) | ||
646 | #define __NR_timerfd_settime (__NR_Linux + 282) | ||
641 | 647 | ||
642 | /* | 648 | /* |
643 | * Offset of the last Linux 64-bit flavoured syscall | 649 | * Offset of the last Linux 64-bit flavoured syscall |
644 | */ | 650 | */ |
645 | #define __NR_Linux_syscalls 279 | 651 | #define __NR_Linux_syscalls 282 |
646 | 652 | ||
647 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 653 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
648 | 654 | ||
649 | #define __NR_64_Linux 5000 | 655 | #define __NR_64_Linux 5000 |
650 | #define __NR_64_Linux_syscalls 279 | 656 | #define __NR_64_Linux_syscalls 282 |
651 | 657 | ||
652 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | 658 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
653 | 659 | ||
@@ -939,16 +945,19 @@ | |||
939 | #define __NR_timerfd (__NR_Linux + 281) | 945 | #define __NR_timerfd (__NR_Linux + 281) |
940 | #define __NR_eventfd (__NR_Linux + 282) | 946 | #define __NR_eventfd (__NR_Linux + 282) |
941 | #define __NR_fallocate (__NR_Linux + 283) | 947 | #define __NR_fallocate (__NR_Linux + 283) |
948 | #define __NR_timerfd_create (__NR_Linux + 284) | ||
949 | #define __NR_timerfd_gettime (__NR_Linux + 285) | ||
950 | #define __NR_timerfd_settime (__NR_Linux + 286) | ||
942 | 951 | ||
943 | /* | 952 | /* |
944 | * Offset of the last N32 flavoured syscall | 953 | * Offset of the last N32 flavoured syscall |
945 | */ | 954 | */ |
946 | #define __NR_Linux_syscalls 283 | 955 | #define __NR_Linux_syscalls 286 |
947 | 956 | ||
948 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 957 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
949 | 958 | ||
950 | #define __NR_N32_Linux 6000 | 959 | #define __NR_N32_Linux 6000 |
951 | #define __NR_N32_Linux_syscalls 283 | 960 | #define __NR_N32_Linux_syscalls 286 |
952 | 961 | ||
953 | #ifdef __KERNEL__ | 962 | #ifdef __KERNEL__ |
954 | 963 | ||