[PARISC] Add new entries to the syscall table

Most are easy, but sync_file_range needed special handling when entering
through the 32-bit syscall table.

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>

authored by Kyle McMartin and committed by Kyle McMartin 6ca773cf 2fd83038

+22 -2
+8
arch/parisc/kernel/sys_parisc.c
··· 231 (loff_t)high_len << 32 | low_len, advice); 232 } 233 234 asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr, unsigned long len, int prot, int flag) 235 { 236 return -ENOMEM;
··· 231 (loff_t)high_len << 32 | low_len, advice); 232 } 233 234 + asmlinkage long parisc_sync_file_range(int fd, 235 + u32 hi_off, u32 lo_off, u32 hi_nbytes, u32 lo_nbytes, 236 + unsigned int flags) 237 + { 238 + return sys_sync_file_range(fd, (loff_t)hi_off << 32 | lo_off, 239 + (loff_t)hi_nbytes << 32 | lo_nbytes, flags); 240 + } 241 + 242 asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr, unsigned long len, int prot, int flag) 243 { 244 return -ENOMEM;
+7 -1
arch/parisc/kernel/syscall_table.S
··· 13 * Copyright (C) 2001 Helge Deller <deller at parisc-linux.org> 14 * Copyright (C) 2000-2001 Thomas Bogendoerfer <tsbogend at parisc-linux.org> 15 * Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org> 16 - * 17 * 18 * This program is free software; you can redistribute it and/or modify 19 * it under the terms of the GNU General Public License as published by ··· 393 ENTRY_SAME(readlinkat) /* 285 */ 394 ENTRY_SAME(fchmodat) 395 ENTRY_SAME(faccessat) 396 /* Nothing yet */ 397
··· 13 * Copyright (C) 2001 Helge Deller <deller at parisc-linux.org> 14 * Copyright (C) 2000-2001 Thomas Bogendoerfer <tsbogend at parisc-linux.org> 15 * Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org> 16 + * Copyright (C) 2005-2006 Kyle McMartin <kyle at parisc-linux.org> 17 * 18 * This program is free software; you can redistribute it and/or modify 19 * it under the terms of the GNU General Public License as published by ··· 393 ENTRY_SAME(readlinkat) /* 285 */ 394 ENTRY_SAME(fchmodat) 395 ENTRY_SAME(faccessat) 396 + ENTRY_SAME(unshare) 397 + ENTRY_COMP(set_robust_list) 398 + ENTRY_COMP(get_robust_list) /* 290 */ 399 + ENTRY_SAME(splice) 400 + ENTRY_OURS(sync_file_range) 401 + ENTRY_SAME(tee) 402 /* Nothing yet */ 403
+7 -1
include/asm-parisc/unistd.h
··· 780 #define __NR_readlinkat (__NR_Linux + 285) 781 #define __NR_fchmodat (__NR_Linux + 286) 782 #define __NR_faccessat (__NR_Linux + 287) 783 784 - #define __NR_Linux_syscalls 288 785 786 #define HPUX_GATEWAY_ADDR 0xC0000004 787 #define LINUX_GATEWAY_ADDR 0x100
··· 780 #define __NR_readlinkat (__NR_Linux + 285) 781 #define __NR_fchmodat (__NR_Linux + 286) 782 #define __NR_faccessat (__NR_Linux + 287) 783 + #define __NR_unshare (__NR_Linux + 288) 784 + #define __NR_set_robust_list (__NR_Linux + 289) 785 + #define __NR_get_robust_list (__NR_Linux + 290) 786 + #define __NR_splice (__NR_Linux + 291) 787 + #define __NR_sync_file_range (__NR_Linux + 292) 788 + #define __NR_tee (__NR_Linux + 293) 789 790 + #define __NR_Linux_syscalls 294 791 792 #define HPUX_GATEWAY_ADDR 0xC0000004 793 #define LINUX_GATEWAY_ADDR 0x100