mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]>
This commit is contained in:
parent
10b1fbdb0a
commit
59359ff877
6 changed files with 23 additions and 15 deletions
|
|
@ -318,12 +318,15 @@
|
|||
#define __NR_unshare 299
|
||||
#define __NR_set_robust_list 300
|
||||
#define __NR_get_robust_list 301
|
||||
#define __NR_migrate_pages 302
|
||||
|
||||
#define NR_SYSCALLS 303
|
||||
|
||||
#ifdef __KERNEL__
|
||||
/* WARNING: You MAY NOT add syscall numbers larger than 301, since
|
||||
/* WARNING: You MAY NOT add syscall numbers larger than 302, since
|
||||
* all of the syscall tables in the Sparc kernel are
|
||||
* sized to have 301 entries (starting at zero). Therefore
|
||||
* find a free slot in the 0-301 range.
|
||||
* sized to have 302 entries (starting at zero). Therefore
|
||||
* find a free slot in the 0-302 range.
|
||||
*/
|
||||
|
||||
#define _syscall0(type,name) \
|
||||
|
|
|
|||
Loading…
Reference in a new issue