diff options
author | Dmitri Vorobiev <dmitri.vorobiev@gmail.com> | 2008-02-18 16:02:37 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-02-19 12:01:31 -0500 |
commit | 6783fe6253045bf5cbdf25e4be296f91437c5523 (patch) | |
tree | 6f255d70ac6680d7177ed2cbbf70d0830afe1450 /arch | |
parent | 84502f817b0b28f37e0a7355c75f05bb489d3a01 (diff) |
[MIPS] Wire up the timerfd_*() o32 system calls
This patch enables the system calls timerfd_create(), timerfd_settime()
and timerfd_gettime() for MIPS architecture.
Please see the following Bugzilla entry for more details:
http://bugzilla.kernel.org/show_bug.cgi?id=10038
This was tested using a Malta 4Kc board in both little-endian and
big-endian modes. The unit test program is available from the URL
above.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
[Ralf: Added N64, N32 and O32 bits on 64-bit kernels.]
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-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 |
4 files changed, 12 insertions, 0 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 |