diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-07-13 07:48:45 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:31:47 -0400 |
commit | 7db36c858c01218bf02931c39076b082c42d964c (patch) | |
tree | eb74babda1c99cb89dd052e9b9396d7fc0870ce0 | |
parent | ec74e361f1e71a2498e48b62abdc4bd8d2423354 (diff) |
Add inotify syscalls for MIPS.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/scall32-o32.S | 4 | ||||
-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 | 16 |
5 files changed, 25 insertions, 4 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index c389dbaa279e..fd1823c1657a 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -624,7 +624,9 @@ einval: li v0, -EINVAL | |||
624 | sys sys_request_key 4 | 624 | sys sys_request_key 4 |
625 | sys sys_keyctl 5 | 625 | sys sys_keyctl 5 |
626 | sys sys_set_thread_area 1 | 626 | sys sys_set_thread_area 1 |
627 | 627 | sys sys_inotify_init 0 | |
628 | sys sys_inotify_add_watch 3 /* 4285 */ | ||
629 | sys sys_inotify_rm_watch 2 | ||
628 | .endm | 630 | .endm |
629 | 631 | ||
630 | /* We pre-compute the number of _instruction_ bytes needed to | 632 | /* 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 d11f99b0ae53..9085838d6ce3 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
@@ -450,3 +450,6 @@ sys_call_table: | |||
450 | PTR sys_request_key /* 5240 */ | 450 | PTR sys_request_key /* 5240 */ |
451 | PTR sys_keyctl | 451 | PTR sys_keyctl |
452 | PTR sys_set_thread_area | 452 | PTR sys_set_thread_area |
453 | PTR sys_inotify_init | ||
454 | PTR sys_inotify_add_watch | ||
455 | PTR sys_inotify_rm_watch /* 5245 */ | ||
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index cb671ef5e19b..0dfb34bf9792 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -364,3 +364,6 @@ EXPORT(sysn32_call_table) | |||
364 | PTR sys_request_key | 364 | PTR sys_request_key |
365 | PTR sys_keyctl /* 6245 */ | 365 | PTR sys_keyctl /* 6245 */ |
366 | PTR sys_set_thread_area | 366 | PTR sys_set_thread_area |
367 | sys sys_inotify_init | ||
368 | sys sys_inotify_add_watch | ||
369 | sys sys_inotify_rm_watch | ||
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index deb7f932e288..5a16401e443a 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -486,4 +486,7 @@ sys_call_table: | |||
486 | PTR sys_request_key | 486 | PTR sys_request_key |
487 | PTR sys_keyctl | 487 | PTR sys_keyctl |
488 | PTR sys_set_thread_area | 488 | PTR sys_set_thread_area |
489 | PTR sys_inotify_init | ||
490 | PTR sys_inotify_add_watch /* 4285 */ | ||
491 | PTR sys_inotify_rm_watch | ||
489 | .size sys_call_table,.-sys_call_table | 492 | .size sys_call_table,.-sys_call_table |
diff --git a/include/asm-mips/unistd.h b/include/asm-mips/unistd.h index 6be69c3a691f..c9eaf4c104de 100644 --- a/include/asm-mips/unistd.h +++ b/include/asm-mips/unistd.h | |||
@@ -304,11 +304,15 @@ | |||
304 | #define __NR_request_key (__NR_Linux + 281) | 304 | #define __NR_request_key (__NR_Linux + 281) |
305 | #define __NR_keyctl (__NR_Linux + 282) | 305 | #define __NR_keyctl (__NR_Linux + 282) |
306 | #define __NR_set_thread_area (__NR_Linux + 283) | 306 | #define __NR_set_thread_area (__NR_Linux + 283) |
307 | #define __NR_inotify_init (__NR_Linux + 284) | ||
308 | #define __NR_inotify_add_watch (__NR_Linux + 285) | ||
309 | #define __NR_inotify_rm_watch (__NR_Linux + 286) | ||
310 | |||
307 | 311 | ||
308 | /* | 312 | /* |
309 | * Offset of the last Linux o32 flavoured syscall | 313 | * Offset of the last Linux o32 flavoured syscall |
310 | */ | 314 | */ |
311 | #define __NR_Linux_syscalls 283 | 315 | #define __NR_Linux_syscalls 286 |
312 | 316 | ||
313 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 317 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
314 | 318 | ||
@@ -564,11 +568,14 @@ | |||
564 | #define __NR_request_key (__NR_Linux + 240) | 568 | #define __NR_request_key (__NR_Linux + 240) |
565 | #define __NR_keyctl (__NR_Linux + 241) | 569 | #define __NR_keyctl (__NR_Linux + 241) |
566 | #define __NR_set_thread_area (__NR_Linux + 242) | 570 | #define __NR_set_thread_area (__NR_Linux + 242) |
571 | #define __NR_inotify_init (__NR_Linux + 243) | ||
572 | #define __NR_inotify_add_watch (__NR_Linux + 244) | ||
573 | #define __NR_inotify_rm_watch (__NR_Linux + 245) | ||
567 | 574 | ||
568 | /* | 575 | /* |
569 | * Offset of the last Linux 64-bit flavoured syscall | 576 | * Offset of the last Linux 64-bit flavoured syscall |
570 | */ | 577 | */ |
571 | #define __NR_Linux_syscalls 242 | 578 | #define __NR_Linux_syscalls 245 |
572 | 579 | ||
573 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 580 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
574 | 581 | ||
@@ -828,11 +835,14 @@ | |||
828 | #define __NR_request_key (__NR_Linux + 244) | 835 | #define __NR_request_key (__NR_Linux + 244) |
829 | #define __NR_keyctl (__NR_Linux + 245) | 836 | #define __NR_keyctl (__NR_Linux + 245) |
830 | #define __NR_set_thread_area (__NR_Linux + 246) | 837 | #define __NR_set_thread_area (__NR_Linux + 246) |
838 | #define __NR_inotify_init (__NR_Linux + 247) | ||
839 | #define __NR_inotify_add_watch (__NR_Linux + 248) | ||
840 | #define __NR_inotify_rm_watch (__NR_Linux + 249) | ||
831 | 841 | ||
832 | /* | 842 | /* |
833 | * Offset of the last N32 flavoured syscall | 843 | * Offset of the last N32 flavoured syscall |
834 | */ | 844 | */ |
835 | #define __NR_Linux_syscalls 246 | 845 | #define __NR_Linux_syscalls 249 |
836 | 846 | ||
837 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 847 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
838 | 848 | ||