diff options
author | Kyle McMartin <kyle@parisc-linux.org> | 2006-04-20 00:44:07 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@hera.kernel.org> | 2006-04-21 18:20:35 -0400 |
commit | 6ca773cf8b9dc19989c9b44635292b1ba80f9112 (patch) | |
tree | 46d72c9943e17b60af4cd5ebcd330618d9e640d4 /arch | |
parent | 2fd83038160531245099c3c5b3511fa4b80765eb (diff) |
[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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/parisc/kernel/sys_parisc.c | 8 | ||||
-rw-r--r-- | arch/parisc/kernel/syscall_table.S | 8 |
2 files changed, 15 insertions, 1 deletions
diff --git a/arch/parisc/kernel/sys_parisc.c b/arch/parisc/kernel/sys_parisc.c index d15a1d53e101..8b5df98e2b31 100644 --- a/arch/parisc/kernel/sys_parisc.c +++ b/arch/parisc/kernel/sys_parisc.c | |||
@@ -231,6 +231,14 @@ asmlinkage long parisc_fadvise64_64(int fd, | |||
231 | (loff_t)high_len << 32 | low_len, advice); | 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 | asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr, unsigned long len, int prot, int flag) | 242 | asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr, unsigned long len, int prot, int flag) |
235 | { | 243 | { |
236 | return -ENOMEM; | 244 | return -ENOMEM; |
diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S index bbeeb614cfab..e27b432f90a8 100644 --- a/arch/parisc/kernel/syscall_table.S +++ b/arch/parisc/kernel/syscall_table.S | |||
@@ -13,7 +13,7 @@ | |||
13 | * Copyright (C) 2001 Helge Deller <deller at parisc-linux.org> | 13 | * Copyright (C) 2001 Helge Deller <deller at parisc-linux.org> |
14 | * Copyright (C) 2000-2001 Thomas Bogendoerfer <tsbogend 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> | 15 | * Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org> |
16 | * | 16 | * Copyright (C) 2005-2006 Kyle McMartin <kyle at parisc-linux.org> |
17 | * | 17 | * |
18 | * This program is free software; you can redistribute it and/or modify | 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 | 19 | * it under the terms of the GNU General Public License as published by |
@@ -393,5 +393,11 @@ | |||
393 | ENTRY_SAME(readlinkat) /* 285 */ | 393 | ENTRY_SAME(readlinkat) /* 285 */ |
394 | ENTRY_SAME(fchmodat) | 394 | ENTRY_SAME(fchmodat) |
395 | ENTRY_SAME(faccessat) | 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 | /* Nothing yet */ | 402 | /* Nothing yet */ |
397 | 403 | ||