registration for new system call unshare
PATCH 1/1 registration for new system call unshare
[PATCH] unshare system call: system call registration for ia64
Registers system call for the ia64 architecture.
This patch applies on top of Ken's patch (that added *at calls), reserves space for ppoll and pselect, and adds unshare at system call number 1296.
---
arch/ia64/kernel/entry.S | 3 +++ include/asm-ia64/unistd.h | 3 +++ 2 files changed, 6 insertions(+)
arch/ia64/kernel/entry.S +3 -0
@@ -1614,5 +1614,8 @@ sys_call_table: data8 sys_readlinkat data8 sys_fchmodat data8 sys_faccessat + data8 sys_ni_syscall // reserved for pselect + data8 sys_ni_syscall // 1295 reserved for ppoll + data8 sys_unshare .org sys_call_table + 8*NR_syscalls // guard against failures to increase NR_syscalls
include/asm-ia64/unistd.h +3 -0
@@ -283,6 +283,9 @@#define __NR_readlinkat 1291#define __NR_fchmodat 1292#define __NR_faccessat 1293 +#define __NR_ni_syscall 1294 +#define __NR_ni_syscall 1295 +#define __NR_unshare 1296#ifdef __KERNEL__
include/asm-ia64/unistd.h line 287
Quoted 5 lines · JANAK DESAI
[PATCH] unshare system call: system call registration for ia64
include/asm-ia64/unistd.h +2
-0+#define __NR_ni_syscall 1294 +#define __NR_ni_syscall 1295
These should be __NR_sys_pselect and __NR_sys_ppoll otherwise you will get warnings...
Quoted 6 lines
include/asm-ia64/unistd.h line 287
Quoted 3 lines
include/asm-ia64/unistd.h +2
-0+#define __NR_ni_syscall 1294 +#define __NR_ni_syscall 1295These should be
__NR_sys_pselectand__NR_sys_ppollotherwise you will get warnings...
I'm just going to put a /* 1294, 1295 reserved for pselect/ppoll */ comment there. (If anyone is looking for something to do, then take a look at the TIF_RESTORE_SIGMASK changes that are a pre-requisite for these two calls).
It's also time to bump up NR_syscalls.
-Tony
Luck, Tony wrote on Wednesday, February 08, 2006 4:10 PM
Quoted 1 line
It's also time to bump up
NR_syscalls.
Just an idea, can we recycle some of old unused syscall number? 9-10'ish in arch/ia64.
- Ken
Quoted 2 lines
Just an idea, can we recycle some of old unused syscall number? 9-10'ish in
arch/ia64.
It would save eight bytes to recycle an unused number, but there is some maintenance benefit in adding the new ones at the end in the same order (makes it easy to see which ones I'm missing by comparing against i386).
-Tony