public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] registration for new system call unshare
@ 2006-02-08 23:14 JANAK DESAI
  2006-02-08 23:59 ` Kyle McMartin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: JANAK DESAI @ 2006-02-08 23:14 UTC (permalink / raw)
  To: linux-ia64

[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.

Signed-off-by: Janak Desai <janak@us.ibm.com>

---

 arch/ia64/kernel/entry.S  |    3 +++
 include/asm-ia64/unistd.h |    3 +++
 2 files changed, 6 insertions(+)

diff -Naurp 2.6.16-rc2-git6+ken/arch/ia64/kernel/entry.S 2.6.16-rc2-git6+ia64/arch/ia64/kernel/entry.S
--- 2.6.16-rc2-git6+ken/arch/ia64/kernel/entry.S	2006-02-08 22:36:31.000000000 +0000
+++ 2.6.16-rc2-git6+ia64/arch/ia64/kernel/entry.S	2006-02-08 21:43:30.000000000 +0000
@@ -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
diff -Naurp 2.6.16-rc2-git6+ken/include/asm-ia64/unistd.h 2.6.16-rc2-git6+ia64/include/asm-ia64/unistd.h
--- 2.6.16-rc2-git6+ken/include/asm-ia64/unistd.h	2006-02-08 22:36:32.000000000 +0000
+++ 2.6.16-rc2-git6+ia64/include/asm-ia64/unistd.h	2006-02-08 21:48:32.000000000 +0000
@@ -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__
 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] registration for new system call unshare
  2006-02-08 23:14 [PATCH] registration for new system call unshare JANAK DESAI
@ 2006-02-08 23:59 ` Kyle McMartin
  2006-02-09  0:09 ` Luck, Tony
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Kyle McMartin @ 2006-02-08 23:59 UTC (permalink / raw)
  To: linux-ia64

On Wed, Feb 08, 2006 at 06:14:41PM -0500, JANAK DESAI wrote:
> [PATCH] unshare system call: system call registration for ia64

> +#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...

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] registration for new system call unshare
  2006-02-08 23:14 [PATCH] registration for new system call unshare JANAK DESAI
  2006-02-08 23:59 ` Kyle McMartin
@ 2006-02-09  0:09 ` Luck, Tony
  2006-02-09  0:29 ` Chen, Kenneth W
  2006-02-09  0:35 ` Luck, Tony
  3 siblings, 0 replies; 5+ messages in thread
From: Luck, Tony @ 2006-02-09  0:09 UTC (permalink / raw)
  To: linux-ia64

>> +#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...

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] registration for new system call unshare
  2006-02-08 23:14 [PATCH] registration for new system call unshare JANAK DESAI
  2006-02-08 23:59 ` Kyle McMartin
  2006-02-09  0:09 ` Luck, Tony
@ 2006-02-09  0:29 ` Chen, Kenneth W
  2006-02-09  0:35 ` Luck, Tony
  3 siblings, 0 replies; 5+ messages in thread
From: Chen, Kenneth W @ 2006-02-09  0:29 UTC (permalink / raw)
  To: linux-ia64

Luck, Tony wrote on Wednesday, February 08, 2006 4:10 PM
> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] registration for new system call unshare
  2006-02-08 23:14 [PATCH] registration for new system call unshare JANAK DESAI
                   ` (2 preceding siblings ...)
  2006-02-09  0:29 ` Chen, Kenneth W
@ 2006-02-09  0:35 ` Luck, Tony
  3 siblings, 0 replies; 5+ messages in thread
From: Luck, Tony @ 2006-02-09  0:35 UTC (permalink / raw)
  To: linux-ia64

>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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-09  0:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-08 23:14 [PATCH] registration for new system call unshare JANAK DESAI
2006-02-08 23:59 ` Kyle McMartin
2006-02-09  0:09 ` Luck, Tony
2006-02-09  0:29 ` Chen, Kenneth W
2006-02-09  0:35 ` Luck, Tony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox