Commit 6ca773cf8b9dc19989c9b44635292b1ba80f9112
Committed by
Kyle McMartin
1 parent
2fd8303816
Exists in
master
and in
4 other branches
[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>
Showing 3 changed files with 22 additions and 2 deletions Side-by-side Diff
arch/parisc/kernel/sys_parisc.c
| ... | ... | @@ -231,6 +231,14 @@ |
| 231 | 231 | (loff_t)high_len << 32 | low_len, advice); |
| 232 | 232 | } |
| 233 | 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 | + | |
| 234 | 242 | asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr, unsigned long len, int prot, int flag) |
| 235 | 243 | { |
| 236 | 244 | return -ENOMEM; |
arch/parisc/kernel/syscall_table.S
| ... | ... | @@ -13,8 +13,8 @@ |
| 13 | 13 | * Copyright (C) 2001 Helge Deller <deller at parisc-linux.org> |
| 14 | 14 | * Copyright (C) 2000-2001 Thomas Bogendoerfer <tsbogend at parisc-linux.org> |
| 15 | 15 | * Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org> |
| 16 | + * Copyright (C) 2005-2006 Kyle McMartin <kyle at parisc-linux.org> | |
| 16 | 17 | * |
| 17 | - * | |
| 18 | 18 | * This program is free software; you can redistribute it and/or modify |
| 19 | 19 | * it under the terms of the GNU General Public License as published by |
| 20 | 20 | * the Free Software Foundation; either version 2 of the License, or |
| ... | ... | @@ -393,5 +393,11 @@ |
| 393 | 393 | ENTRY_SAME(readlinkat) /* 285 */ |
| 394 | 394 | ENTRY_SAME(fchmodat) |
| 395 | 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) | |
| 396 | 402 | /* Nothing yet */ |
include/asm-parisc/unistd.h
| ... | ... | @@ -780,8 +780,14 @@ |
| 780 | 780 | #define __NR_readlinkat (__NR_Linux + 285) |
| 781 | 781 | #define __NR_fchmodat (__NR_Linux + 286) |
| 782 | 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) | |
| 783 | 789 | |
| 784 | -#define __NR_Linux_syscalls 288 | |
| 790 | +#define __NR_Linux_syscalls 294 | |
| 785 | 791 | |
| 786 | 792 | #define HPUX_GATEWAY_ADDR 0xC0000004 |
| 787 | 793 | #define LINUX_GATEWAY_ADDR 0x100 |