浏览代码

sh: wire up sys_preadv/sys_pwritev() syscalls.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 16 年之前
父节点
当前提交
090fed50ca
共有 4 个文件被更改,包括 10 次插入2 次删除
  1. 3 1
      arch/sh/include/asm/unistd_32.h
  2. 3 1
      arch/sh/include/asm/unistd_64.h
  3. 2 0
      arch/sh/kernel/syscalls_32.S
  4. 2 0
      arch/sh/kernel/syscalls_64.S

+ 3 - 1
arch/sh/include/asm/unistd_32.h

@@ -341,8 +341,10 @@
 #define __NR_dup3		330
 #define __NR_pipe2		331
 #define __NR_inotify_init1	332
+#define __NR_preadv		333
+#define __NR_pwritev		334
 
-#define NR_syscalls 333
+#define NR_syscalls 335
 
 #ifdef __KERNEL__
 

+ 3 - 1
arch/sh/include/asm/unistd_64.h

@@ -381,10 +381,12 @@
 #define __NR_dup3		358
 #define __NR_pipe2		359
 #define __NR_inotify_init1	360
+#define __NR_preadv		361
+#define __NR_pwritev		362
 
 #ifdef __KERNEL__
 
-#define NR_syscalls 361
+#define NR_syscalls 363
 
 #define __ARCH_WANT_IPC_PARSE_VERSION
 #define __ARCH_WANT_OLD_READDIR

+ 2 - 0
arch/sh/kernel/syscalls_32.S

@@ -349,3 +349,5 @@ ENTRY(sys_call_table)
 	.long sys_dup3			/* 330 */
 	.long sys_pipe2
 	.long sys_inotify_init1
+	.long sys_preadv
+	.long sys_writev

+ 2 - 0
arch/sh/kernel/syscalls_64.S

@@ -387,3 +387,5 @@ sys_call_table:
 	.long sys_dup3
 	.long sys_pipe2
 	.long sys_inotify_init1		/* 360 */
+	.long sys_preadv
+	.long sys_pwritev