Skip to content

Commit 353b28b

Browse files
author
David S. Miller
committed
[SPARC]: Add robust futex syscall entries.
Signed-off-by: David S. Miller <[email protected]>
1 parent 9a2a9bb commit 353b28b

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

arch/sparc/kernel/systbls.S

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ sys_call_table:
7979
/*285*/ .long sys_mkdirat, sys_mknodat, sys_fchownat, sys_futimesat, sys_fstatat64
8080
/*290*/ .long sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat
8181
/*295*/ .long sys_fchmodat, sys_faccessat, sys_pselect6, sys_ppoll, sys_unshare
82+
/*300*/ .long sys_set_robust_list, sys_get_robust_list
8283

8384
#ifdef CONFIG_SUNOS_EMUL
8485
/* Now the SunOS syscall table. */
@@ -190,6 +191,6 @@ sunos_sys_table:
190191
/*290*/ .long sunos_nosys, sunos_nosys, sunos_nosys
191192
.long sunos_nosys, sunos_nosys, sunos_nosys
192193
.long sunos_nosys, sunos_nosys, sunos_nosys
193-
.long sunos_nosys
194+
.long sunos_nosys, sunos_nosys, sunos_nosys
194195

195196
#endif

arch/sparc64/kernel/systbls.S

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ sys_call_table32:
7878
.word compat_sys_mq_timedsend, compat_sys_mq_timedreceive, compat_sys_mq_notify, compat_sys_mq_getsetattr, compat_sys_waitid
7979
/*280*/ .word sys32_tee, sys_add_key, sys_request_key, sys_keyctl, compat_sys_openat
8080
.word sys_mkdirat, sys_mknodat, sys_fchownat, compat_sys_futimesat, compat_sys_fstatat64
81-
/*285*/ .word sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat
81+
/*290*/ .word sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat
8282
.word sys_fchmodat, sys_faccessat, compat_sys_pselect6, compat_sys_ppoll, sys_unshare
83+
/*300*/ .word compat_sys_set_robust_list, compat_sys_get_robust_list
8384

8485
#endif /* CONFIG_COMPAT */
8586

@@ -147,8 +148,9 @@ sys_call_table:
147148
.word sys_mq_timedsend, sys_mq_timedreceive, sys_mq_notify, sys_mq_getsetattr, sys_waitid
148149
/*280*/ .word sys_tee, sys_add_key, sys_request_key, sys_keyctl, sys_openat
149150
.word sys_mkdirat, sys_mknodat, sys_fchownat, sys_futimesat, sys_fstatat64
150-
/*285*/ .word sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat
151+
/*290*/ .word sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat
151152
.word sys_fchmodat, sys_faccessat, sys_pselect6, sys_ppoll, sys_unshare
153+
/*300*/ .word sys_set_robust_list, sys_get_robust_list
152154

153155
#if defined(CONFIG_SUNOS_EMUL) || defined(CONFIG_SOLARIS_EMUL) || \
154156
defined(CONFIG_SOLARIS_EMUL_MODULE)
@@ -261,5 +263,5 @@ sunos_sys_table:
261263
/*290*/ .word sunos_nosys, sunos_nosys, sunos_nosys
262264
.word sunos_nosys, sunos_nosys, sunos_nosys
263265
.word sunos_nosys, sunos_nosys, sunos_nosys
264-
.word sunos_nosys
266+
.word sunos_nosys, sunos_nosys, sunos_nosys
265267
#endif

include/asm-sparc/unistd.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,13 @@
316316
#define __NR_pselect6 297
317317
#define __NR_ppoll 298
318318
#define __NR_unshare 299
319+
#define __NR_set_robust_list 300
320+
#define __NR_get_robust_list 301
319321

320-
/* WARNING: You MAY NOT add syscall numbers larger than 299, since
322+
/* WARNING: You MAY NOT add syscall numbers larger than 301, since
321323
* all of the syscall tables in the Sparc kernel are
322-
* sized to have 299 entries (starting at zero). Therefore
323-
* find a free slot in the 0-299 range.
324+
* sized to have 301 entries (starting at zero). Therefore
325+
* find a free slot in the 0-301 range.
324326
*/
325327

326328
#define _syscall0(type,name) \

include/asm-sparc64/unistd.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,13 @@
318318
#define __NR_pselect6 297
319319
#define __NR_ppoll 298
320320
#define __NR_unshare 299
321+
#define __NR_set_robust_list 300
322+
#define __NR_get_robust_list 301
321323

322-
/* WARNING: You MAY NOT add syscall numbers larger than 299, since
324+
/* WARNING: You MAY NOT add syscall numbers larger than 301, since
323325
* all of the syscall tables in the Sparc kernel are
324-
* sized to have 299 entries (starting at zero). Therefore
325-
* find a free slot in the 0-299 range.
326+
* sized to have 301 entries (starting at zero). Therefore
327+
* find a free slot in the 0-301 range.
326328
*/
327329

328330
#define _syscall0(type,name) \

0 commit comments

Comments
 (0)