Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh64: Wire up many new syscalls.

This has suffered a bit of bitrot, so we're a bit behind on the
syscalls. There were a few that were wrapped incorrectly as well,
caught by the syscall checker. Fix them all up.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

+70 -9
+33 -3
arch/sh64/kernel/syscalls.S
··· 2 2 * arch/sh64/kernel/syscalls.S 3 3 * 4 4 * Copyright (C) 2000, 2001 Paolo Alberelli 5 - * Copyright (C) 2004 Paul Mundt 5 + * Copyright (C) 2004 - 2007 Paul Mundt 6 6 * Copyright (C) 2003, 2004 Richard Curnow 7 7 * 8 8 * This file is subject to the terms and conditions of the GNU General Public ··· 20 20 */ 21 21 .globl sys_call_table 22 22 sys_call_table: 23 - .long sys_ni_syscall /* 0 - old "setup()" system call */ 23 + .long sys_restart_syscall /* 0 - old "setup()" system call */ 24 24 .long sys_exit 25 25 .long sys_fork 26 26 .long sys_read ··· 347 347 .long sys_inotify_init 348 348 .long sys_inotify_add_watch 349 349 .long sys_inotify_rm_watch /* 320 */ 350 - 350 + .long sys_ni_syscall 351 + .long sys_migrate_pages 352 + .long sys_openat 353 + .long sys_mkdirat 354 + .long sys_mknodat /* 325 */ 355 + .long sys_fchownat 356 + .long sys_futimesat 357 + .long sys_fstatat64 358 + .long sys_unlinkat 359 + .long sys_renameat /* 330 */ 360 + .long sys_linkat 361 + .long sys_symlinkat 362 + .long sys_readlinkat 363 + .long sys_fchmodat 364 + .long sys_faccessat /* 335 */ 365 + .long sys_pselect6 366 + .long sys_ppoll 367 + .long sys_unshare 368 + .long sys_set_robust_list 369 + .long sys_get_robust_list /* 340 */ 370 + .long sys_splice 371 + .long sys_sync_file_range 372 + .long sys_tee 373 + .long sys_vmsplice 374 + .long sys_move_pages /* 345 */ 375 + .long sys_getcpu 376 + .long sys_epoll_pwait 377 + .long sys_utimensat 378 + .long sys_signalfd 379 + .long sys_timerfd /* 350 */ 380 + .long sys_eventfd
+37 -6
include/asm-sh64/unistd.h
··· 9 9 * include/asm-sh64/unistd.h 10 10 * 11 11 * Copyright (C) 2000, 2001 Paolo Alberelli 12 - * Copyright (C) 2003 Paul Mundt 12 + * Copyright (C) 2003 - 2007 Paul Mundt 13 13 * Copyright (C) 2004 Sean McGoogan 14 14 * 15 15 * This file contains the system call numbers. 16 16 * 17 17 */ 18 18 19 - #define __NR_setup 0 /* used only by init, to get system going */ 19 + #define __NR_restart_syscall 0 20 20 #define __NR_exit 1 21 21 #define __NR_fork 2 22 22 #define __NR_read 3 ··· 196 196 #define __NR_rt_sigtimedwait 177 197 197 #define __NR_rt_sigqueueinfo 178 198 198 #define __NR_rt_sigsuspend 179 199 - #define __NR_pread 180 200 - #define __NR_pwrite 181 199 + #define __NR_pread64 180 200 + #define __NR_pwrite64 181 201 201 #define __NR_chown 182 202 202 #define __NR_getcwd 183 203 203 #define __NR_capget 184 ··· 343 343 #define __NR_inotify_init 318 344 344 #define __NR_inotify_add_watch 319 345 345 #define __NR_inotify_rm_watch 320 346 + /* 321 is unused */ 347 + #define __NR_migrate_pages 322 348 + #define __NR_openat 323 349 + #define __NR_mkdirat 324 350 + #define __NR_mknodat 325 351 + #define __NR_fchownat 326 352 + #define __NR_futimesat 327 353 + #define __NR_fstatat64 328 354 + #define __NR_unlinkat 329 355 + #define __NR_renameat 330 356 + #define __NR_linkat 331 357 + #define __NR_symlinkat 332 358 + #define __NR_readlinkat 333 359 + #define __NR_fchmodat 334 360 + #define __NR_faccessat 335 361 + #define __NR_pselect6 336 362 + #define __NR_ppoll 337 363 + #define __NR_unshare 338 364 + #define __NR_set_robust_list 339 365 + #define __NR_get_robust_list 340 366 + #define __NR_splice 341 367 + #define __NR_sync_file_range 342 368 + #define __NR_tee 343 369 + #define __NR_vmsplice 344 370 + #define __NR_move_pages 345 371 + #define __NR_getcpu 346 372 + #define __NR_epoll_pwait 347 373 + #define __NR_utimensat 348 374 + #define __NR_signalfd 349 375 + #define __NR_timerfd 350 376 + #define __NR_eventfd 351 346 377 347 - #ifdef __KERNEL__ 378 + #ifdef __KERNEL__ 348 379 349 - #define NR_syscalls 321 380 + #define NR_syscalls 352 350 381 351 382 #define __ARCH_WANT_IPC_PARSE_VERSION 352 383 #define __ARCH_WANT_OLD_READDIR