aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2016-06-28 02:49:46 -0400
committerRich Felker <dalias@libc.org>2016-08-04 23:29:44 -0400
commit74bdaa611fa69368fb4032ad437af073d31116bd (patch)
tree937e35960d121914b4d4ba91fe62bb27d30e69c9 /arch/sh
parenta316399635e334c878a88c90044c1e45f57129a4 (diff)
sh: system call wire up
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/include/uapi/asm/unistd_32.h16
-rw-r--r--arch/sh/include/uapi/asm/unistd_64.h16
-rw-r--r--arch/sh/kernel/syscalls_32.S14
-rw-r--r--arch/sh/kernel/syscalls_64.S14
4 files changed, 58 insertions, 2 deletions
diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h
index d13a1d623736..c801bde9e6f5 100644
--- a/arch/sh/include/uapi/asm/unistd_32.h
+++ b/arch/sh/include/uapi/asm/unistd_32.h
@@ -380,7 +380,21 @@
380#define __NR_process_vm_writev 366 380#define __NR_process_vm_writev 366
381#define __NR_kcmp 367 381#define __NR_kcmp 367
382#define __NR_finit_module 368 382#define __NR_finit_module 368
383#define __NR_sched_getattr 369
384#define __NR_sched_setattr 370
385#define __NR_renameat2 371
386#define __NR_seccomp 372
387#define __NR_getrandom 373
388#define __NR_memfd_create 374
389#define __NR_bpf 375
390#define __NR_execveat 376
391#define __NR_userfaultfd 377
392#define __NR_membarrier 378
393#define __NR_mlock2 379
394#define __NR_copy_file_range 380
395#define __NR_preadv2 381
396#define __NR_pwritev2 382
383 397
384#define NR_syscalls 369 398#define NR_syscalls 383
385 399
386#endif /* __ASM_SH_UNISTD_32_H */ 400#endif /* __ASM_SH_UNISTD_32_H */
diff --git a/arch/sh/include/uapi/asm/unistd_64.h b/arch/sh/include/uapi/asm/unistd_64.h
index 47ebd5b5ed55..ce0cb3598b62 100644
--- a/arch/sh/include/uapi/asm/unistd_64.h
+++ b/arch/sh/include/uapi/asm/unistd_64.h
@@ -400,7 +400,21 @@
400#define __NR_process_vm_writev 377 400#define __NR_process_vm_writev 377
401#define __NR_kcmp 378 401#define __NR_kcmp 378
402#define __NR_finit_module 379 402#define __NR_finit_module 379
403#define __NR_sched_getattr 380
404#define __NR_sched_setattr 381
405#define __NR_renameat2 382
406#define __NR_seccomp 383
407#define __NR_getrandom 384
408#define __NR_memfd_create 385
409#define __NR_bpf 386
410#define __NR_execveat 387
411#define __NR_userfaultfd 388
412#define __NR_membarrier 389
413#define __NR_mlock2 390
414#define __NR_copy_file_range 391
415#define __NR_preadv2 392
416#define __NR_pwritev2 393
403 417
404#define NR_syscalls 380 418#define NR_syscalls 394
405 419
406#endif /* __ASM_SH_UNISTD_64_H */ 420#endif /* __ASM_SH_UNISTD_64_H */
diff --git a/arch/sh/kernel/syscalls_32.S b/arch/sh/kernel/syscalls_32.S
index 734234be2f01..254bc22ee57d 100644
--- a/arch/sh/kernel/syscalls_32.S
+++ b/arch/sh/kernel/syscalls_32.S
@@ -386,3 +386,17 @@ ENTRY(sys_call_table)
386 .long sys_process_vm_writev 386 .long sys_process_vm_writev
387 .long sys_kcmp 387 .long sys_kcmp
388 .long sys_finit_module 388 .long sys_finit_module
389 .long sys_sched_getattr
390 .long sys_sched_setattr /* 370 */
391 .long sys_renameat2
392 .long sys_seccomp
393 .long sys_getrandom
394 .long sys_memfd_create
395 .long sys_bpf /* 375 */
396 .long sys_execveat
397 .long sys_userfaultfd
398 .long sys_membarrier
399 .long sys_mlock2
400 .long sys_copy_file_range /* 380 */
401 .long sys_preadv2
402 .long sys_pwritev2
diff --git a/arch/sh/kernel/syscalls_64.S b/arch/sh/kernel/syscalls_64.S
index 579fcb9a896b..d6a27f7a4c54 100644
--- a/arch/sh/kernel/syscalls_64.S
+++ b/arch/sh/kernel/syscalls_64.S
@@ -406,3 +406,17 @@ sys_call_table:
406 .long sys_process_vm_writev 406 .long sys_process_vm_writev
407 .long sys_kcmp 407 .long sys_kcmp
408 .long sys_finit_module 408 .long sys_finit_module
409 .long sys_sched_getattr /* 380 */
410 .long sys_sched_setattr
411 .long sys_renameat2
412 .long sys_seccomp
413 .long sys_getrandom
414 .long sys_memfd_create /* 385 */
415 .long sys_bpf
416 .long sys_execveat
417 .long sys_userfaultfd
418 .long sys_membarrier
419 .long sys_mlock2 /* 390 */
420 .long sys_copy_file_range
421 .long sys_preadv2
422 .long sys_pwritev2