[SPARC]: Fix robust futex syscalls and wire up migrate_pages.
When I added the entries for the robust futex syscall entries, I forgot to bump NR_SYSCALLS. The current situation is error-prone because NR_SYSCALLS lives in entry.S where the system call limit checks are enforced. Move the definition to asm/unistd.h in order to make this mistake much more difficult to make. And wire up sys_migrate_pages since the powerpc folks implemented the compat wrapper for us. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -32,13 +32,12 @@
|
||||
#include <asm/mxcc.h>
|
||||
#include <asm/thread_info.h>
|
||||
#include <asm/param.h>
|
||||
#include <asm/unistd.h>
|
||||
|
||||
#include <asm/asmmacro.h>
|
||||
|
||||
#define curptr g6
|
||||
|
||||
#define NR_SYSCALLS 300 /* Each OS is different... */
|
||||
|
||||
/* These are just handy. */
|
||||
#define _SV save %sp, -STACKFRAME_SZ, %sp
|
||||
#define _RS restore
|
||||
|
@@ -78,7 +78,7 @@ sys_call_table:
|
||||
/*285*/ .long sys_mkdirat, sys_mknodat, sys_fchownat, sys_futimesat, sys_fstatat64
|
||||
/*290*/ .long sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat
|
||||
/*295*/ .long sys_fchmodat, sys_faccessat, sys_pselect6, sys_ppoll, sys_unshare
|
||||
/*300*/ .long sys_set_robust_list, sys_get_robust_list
|
||||
/*300*/ .long sys_set_robust_list, sys_get_robust_list, sys_migrate_pages
|
||||
|
||||
#ifdef CONFIG_SUNOS_EMUL
|
||||
/* Now the SunOS syscall table. */
|
||||
@@ -190,6 +190,7 @@ sunos_sys_table:
|
||||
/*290*/ .long sunos_nosys, sunos_nosys, sunos_nosys
|
||||
.long sunos_nosys, sunos_nosys, sunos_nosys
|
||||
.long sunos_nosys, sunos_nosys, sunos_nosys
|
||||
.long sunos_nosys, sunos_nosys, sunos_nosys
|
||||
.long sunos_nosys
|
||||
/*300*/ .long sunos_nosys, sunos_nosys, sunos_nosys
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user