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 /include | |
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 'include')
-rw-r--r-- | include/asm-mips/unistd.h | 21 |
1 files changed, 15 insertions, 6 deletions
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 | ||