diff options
| author | Ralf Baechle <ralf@linux-mips.org> | 2011-03-25 13:45:20 -0400 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2011-03-25 13:45:20 -0400 |
| commit | 1bbf28756149a0aa0e3c8a74cea9bbe715639027 (patch) | |
| tree | f1116dc249ed51df853ca74ba52c02d7c16bd377 /arch/mips | |
| parent | 84ed94323e67c9f99606fb24e8c746a0d62ab95a (diff) | |
MIPS: Wire up syncfs(2).
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
| -rw-r--r-- | arch/mips/include/asm/unistd.h | 15 | ||||
| -rw-r--r-- | arch/mips/kernel/scall32-o32.S | 1 | ||||
| -rw-r--r-- | arch/mips/kernel/scall64-64.S | 1 | ||||
| -rw-r--r-- | arch/mips/kernel/scall64-n32.S | 1 | ||||
| -rw-r--r-- | arch/mips/kernel/scall64-o32.S | 1 |
5 files changed, 13 insertions, 6 deletions
diff --git a/arch/mips/include/asm/unistd.h b/arch/mips/include/asm/unistd.h index d1ea5ea7802a..dae22c1d2c82 100644 --- a/arch/mips/include/asm/unistd.h +++ b/arch/mips/include/asm/unistd.h | |||
| @@ -362,16 +362,17 @@ | |||
| 362 | #define __NR_name_to_handle_at (__NR_Linux + 339) | 362 | #define __NR_name_to_handle_at (__NR_Linux + 339) |
| 363 | #define __NR_open_by_handle_at (__NR_Linux + 340) | 363 | #define __NR_open_by_handle_at (__NR_Linux + 340) |
| 364 | #define __NR_clock_adjtime (__NR_Linux + 341) | 364 | #define __NR_clock_adjtime (__NR_Linux + 341) |
| 365 | #define __NR_syncfs (__NR_Linux + 342) | ||
| 365 | 366 | ||
| 366 | /* | 367 | /* |
| 367 | * Offset of the last Linux o32 flavoured syscall | 368 | * Offset of the last Linux o32 flavoured syscall |
| 368 | */ | 369 | */ |
| 369 | #define __NR_Linux_syscalls 341 | 370 | #define __NR_Linux_syscalls 342 |
| 370 | 371 | ||
| 371 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 372 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
| 372 | 373 | ||
| 373 | #define __NR_O32_Linux 4000 | 374 | #define __NR_O32_Linux 4000 |
| 374 | #define __NR_O32_Linux_syscalls 341 | 375 | #define __NR_O32_Linux_syscalls 342 |
| 375 | 376 | ||
| 376 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | 377 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
| 377 | 378 | ||
| @@ -680,16 +681,17 @@ | |||
| 680 | #define __NR_name_to_handle_at (__NR_Linux + 298) | 681 | #define __NR_name_to_handle_at (__NR_Linux + 298) |
| 681 | #define __NR_open_by_handle_at (__NR_Linux + 299) | 682 | #define __NR_open_by_handle_at (__NR_Linux + 299) |
| 682 | #define __NR_clock_adjtime (__NR_Linux + 300) | 683 | #define __NR_clock_adjtime (__NR_Linux + 300) |
| 684 | #define __NR_syncfs (__NR_Linux + 301) | ||
| 683 | 685 | ||
| 684 | /* | 686 | /* |
| 685 | * Offset of the last Linux 64-bit flavoured syscall | 687 | * Offset of the last Linux 64-bit flavoured syscall |
| 686 | */ | 688 | */ |
| 687 | #define __NR_Linux_syscalls 300 | 689 | #define __NR_Linux_syscalls 301 |
| 688 | 690 | ||
| 689 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 691 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
| 690 | 692 | ||
| 691 | #define __NR_64_Linux 5000 | 693 | #define __NR_64_Linux 5000 |
| 692 | #define __NR_64_Linux_syscalls 300 | 694 | #define __NR_64_Linux_syscalls 301 |
| 693 | 695 | ||
| 694 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | 696 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
| 695 | 697 | ||
| @@ -1003,16 +1005,17 @@ | |||
| 1003 | #define __NR_name_to_handle_at (__NR_Linux + 303) | 1005 | #define __NR_name_to_handle_at (__NR_Linux + 303) |
| 1004 | #define __NR_open_by_handle_at (__NR_Linux + 304) | 1006 | #define __NR_open_by_handle_at (__NR_Linux + 304) |
| 1005 | #define __NR_clock_adjtime (__NR_Linux + 305) | 1007 | #define __NR_clock_adjtime (__NR_Linux + 305) |
| 1008 | #define __NR_clock_adjtime (__NR_Linux + 306) | ||
| 1006 | 1009 | ||
| 1007 | /* | 1010 | /* |
| 1008 | * Offset of the last N32 flavoured syscall | 1011 | * Offset of the last N32 flavoured syscall |
| 1009 | */ | 1012 | */ |
| 1010 | #define __NR_Linux_syscalls 305 | 1013 | #define __NR_Linux_syscalls 306 |
| 1011 | 1014 | ||
| 1012 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 1015 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
| 1013 | 1016 | ||
| 1014 | #define __NR_N32_Linux 6000 | 1017 | #define __NR_N32_Linux 6000 |
| 1015 | #define __NR_N32_Linux_syscalls 305 | 1018 | #define __NR_N32_Linux_syscalls 306 |
| 1016 | 1019 | ||
| 1017 | #ifdef __KERNEL__ | 1020 | #ifdef __KERNEL__ |
| 1018 | 1021 | ||
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 66b439db91b5..7f5468b38d4c 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
| @@ -589,6 +589,7 @@ einval: li v0, -ENOSYS | |||
| 589 | sys sys_name_to_handle_at 5 | 589 | sys sys_name_to_handle_at 5 |
| 590 | sys sys_open_by_handle_at 3 /* 4340 */ | 590 | sys sys_open_by_handle_at 3 /* 4340 */ |
| 591 | sys sys_clock_adjtime 2 | 591 | sys sys_clock_adjtime 2 |
| 592 | sys sys_syncfs 1 | ||
| 592 | .endm | 593 | .endm |
| 593 | 594 | ||
| 594 | /* We pre-compute the number of _instruction_ bytes needed to | 595 | /* 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 0ccd6e363b79..a2e1fcbc41dc 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
| @@ -428,4 +428,5 @@ sys_call_table: | |||
| 428 | PTR sys_name_to_handle_at | 428 | PTR sys_name_to_handle_at |
| 429 | PTR sys_open_by_handle_at | 429 | PTR sys_open_by_handle_at |
| 430 | PTR sys_clock_adjtime /* 5300 */ | 430 | PTR sys_clock_adjtime /* 5300 */ |
| 431 | PTR sys_syncfs | ||
| 431 | .size sys_call_table,.-sys_call_table | 432 | .size sys_call_table,.-sys_call_table |
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 179d1c8dcbb2..b2c7624995b8 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
| @@ -428,4 +428,5 @@ EXPORT(sysn32_call_table) | |||
| 428 | PTR sys_name_to_handle_at | 428 | PTR sys_name_to_handle_at |
| 429 | PTR sys_open_by_handle_at | 429 | PTR sys_open_by_handle_at |
| 430 | PTR compat_sys_clock_adjtime /* 6305 */ | 430 | PTR compat_sys_clock_adjtime /* 6305 */ |
| 431 | PTR sys_syncfs | ||
| 431 | .size sysn32_call_table,.-sysn32_call_table | 432 | .size sysn32_call_table,.-sysn32_call_table |
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index 5c4e0dc52f78..049a9c8c49a0 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
| @@ -546,4 +546,5 @@ sys_call_table: | |||
| 546 | PTR sys_name_to_handle_at | 546 | PTR sys_name_to_handle_at |
| 547 | PTR compat_sys_open_by_handle_at /* 4340 */ | 547 | PTR compat_sys_open_by_handle_at /* 4340 */ |
| 548 | PTR compat_sys_clock_adjtime | 548 | PTR compat_sys_clock_adjtime |
| 549 | PTR sys_syncfs | ||
| 549 | .size sys_call_table,.-sys_call_table | 550 | .size sys_call_table,.-sys_call_table |
