diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-05-13 20:07:27 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-05-13 20:07:27 -0400 |
commit | 6b5d1a0a2ff4fc5a26029f62eef033224ce0fa97 (patch) | |
tree | ef91d76f80079e609213a46c34026970f8f2b77e | |
parent | 0a354775af0d3e84158ff87115bdb022b2a517ee (diff) |
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>
-rw-r--r-- | arch/sh64/kernel/syscalls.S | 36 | ||||
-rw-r--r-- | include/asm-sh64/unistd.h | 43 |
2 files changed, 70 insertions, 9 deletions
diff --git a/arch/sh64/kernel/syscalls.S b/arch/sh64/kernel/syscalls.S index c0079d54c850..a5c680d29384 100644 --- a/arch/sh64/kernel/syscalls.S +++ b/arch/sh64/kernel/syscalls.S | |||
@@ -2,7 +2,7 @@ | |||
2 | * arch/sh64/kernel/syscalls.S | 2 | * arch/sh64/kernel/syscalls.S |
3 | * | 3 | * |
4 | * Copyright (C) 2000, 2001 Paolo Alberelli | 4 | * Copyright (C) 2000, 2001 Paolo Alberelli |
5 | * Copyright (C) 2004 Paul Mundt | 5 | * Copyright (C) 2004 - 2007 Paul Mundt |
6 | * Copyright (C) 2003, 2004 Richard Curnow | 6 | * Copyright (C) 2003, 2004 Richard Curnow |
7 | * | 7 | * |
8 | * This file is subject to the terms and conditions of the GNU General Public | 8 | * This file is subject to the terms and conditions of the GNU General Public |
@@ -20,7 +20,7 @@ | |||
20 | */ | 20 | */ |
21 | .globl sys_call_table | 21 | .globl sys_call_table |
22 | sys_call_table: | 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 | .long sys_exit | 24 | .long sys_exit |
25 | .long sys_fork | 25 | .long sys_fork |
26 | .long sys_read | 26 | .long sys_read |
@@ -347,4 +347,34 @@ sys_call_table: | |||
347 | .long sys_inotify_init | 347 | .long sys_inotify_init |
348 | .long sys_inotify_add_watch | 348 | .long sys_inotify_add_watch |
349 | .long sys_inotify_rm_watch /* 320 */ | 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 | ||
diff --git a/include/asm-sh64/unistd.h b/include/asm-sh64/unistd.h index 1f38a7aacaaf..ea3adc600b41 100644 --- a/include/asm-sh64/unistd.h +++ b/include/asm-sh64/unistd.h | |||
@@ -9,14 +9,14 @@ | |||
9 | * include/asm-sh64/unistd.h | 9 | * include/asm-sh64/unistd.h |
10 | * | 10 | * |
11 | * Copyright (C) 2000, 2001 Paolo Alberelli | 11 | * Copyright (C) 2000, 2001 Paolo Alberelli |
12 | * Copyright (C) 2003 Paul Mundt | 12 | * Copyright (C) 2003 - 2007 Paul Mundt |
13 | * Copyright (C) 2004 Sean McGoogan | 13 | * Copyright (C) 2004 Sean McGoogan |
14 | * | 14 | * |
15 | * This file contains the system call numbers. | 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 | #define __NR_exit 1 | 20 | #define __NR_exit 1 |
21 | #define __NR_fork 2 | 21 | #define __NR_fork 2 |
22 | #define __NR_read 3 | 22 | #define __NR_read 3 |
@@ -196,8 +196,8 @@ | |||
196 | #define __NR_rt_sigtimedwait 177 | 196 | #define __NR_rt_sigtimedwait 177 |
197 | #define __NR_rt_sigqueueinfo 178 | 197 | #define __NR_rt_sigqueueinfo 178 |
198 | #define __NR_rt_sigsuspend 179 | 198 | #define __NR_rt_sigsuspend 179 |
199 | #define __NR_pread 180 | 199 | #define __NR_pread64 180 |
200 | #define __NR_pwrite 181 | 200 | #define __NR_pwrite64 181 |
201 | #define __NR_chown 182 | 201 | #define __NR_chown 182 |
202 | #define __NR_getcwd 183 | 202 | #define __NR_getcwd 183 |
203 | #define __NR_capget 184 | 203 | #define __NR_capget 184 |
@@ -343,10 +343,41 @@ | |||
343 | #define __NR_inotify_init 318 | 343 | #define __NR_inotify_init 318 |
344 | #define __NR_inotify_add_watch 319 | 344 | #define __NR_inotify_add_watch 319 |
345 | #define __NR_inotify_rm_watch 320 | 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 | #define __ARCH_WANT_IPC_PARSE_VERSION | 382 | #define __ARCH_WANT_IPC_PARSE_VERSION |
352 | #define __ARCH_WANT_OLD_READDIR | 383 | #define __ARCH_WANT_OLD_READDIR |