From: Ralf Baechle <ralf@linux-mips.org>
To: Herbert Poetzl <herbert@13thfloor.at>
Cc: linux-mips@linux-mips.org
Subject: Re: linux-vserver syscall ...
Date: Wed, 9 Jun 2004 01:54:00 +0200 [thread overview]
Message-ID: <20040608235400.GA31706@linux-mips.org> (raw)
In-Reply-To: <20040524182915.GA27481@MAIL.13thfloor.at>
On Mon, May 24, 2004 at 08:29:15PM +0200, Herbert Poetzl wrote:
> obviously I forgot to ask you to reserve a
> syscall for linux-vserver, and I just discovered
> this as the currently used number (273) was used
> up by some other syscall (in 2.6.7-rc1) ...
>
> so I'm asking you now, could you please reserve
> a syscall for this project, so that we do not
> need to change it on every new kernel release?
>
> here is a list of currently reserved syscalls
> (for other archs) and some links to the project
> (in case you care)
Not really - other than the fact that I'm reluctant to reserve syscall
numbers for something that might never make it into the kernel so
usually i386 reserving a syscall is what convinces me ...
Due to the three support ABIs you actually get 3 syscall numbers even.
o32 gets 277, N64 236 and N32 240. Patch is below.
Ralf
Index: arch/mips/kernel/scall32-o32.S
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/scall32-o32.S,v
retrieving revision 1.8
diff -u -r1.8 scall32-o32.S
--- arch/mips/kernel/scall32-o32.S 26 Apr 2004 15:06:10 -0000 1.8
+++ arch/mips/kernel/scall32-o32.S 8 Jun 2004 23:39:44 -0000
@@ -627,6 +627,7 @@
sys sys_mq_timedreceive 5
sys sys_mq_notify 2 /* 4275 */
sys sys_mq_getsetattr 3
+ sys sys_ni_syscall 0 /* sys_vserver */
.endm
Index: arch/mips/kernel/scall64-64.S
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/scall64-64.S,v
retrieving revision 1.12
diff -u -r1.12 scall64-64.S
--- arch/mips/kernel/scall64-64.S 6 Jun 2004 02:12:38 -0000 1.12
+++ arch/mips/kernel/scall64-64.S 8 Jun 2004 23:39:44 -0000
@@ -447,3 +447,4 @@
PTR sys_mq_timedreceive
PTR sys_mq_notify
PTR sys_mq_getsetattr /* 5235 */
+ PTR sys_ni_syscall /* sys_vserver */
Index: arch/mips/kernel/scall64-n32.S
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/scall64-n32.S,v
retrieving revision 1.11
diff -u -r1.11 scall64-n32.S
--- arch/mips/kernel/scall64-n32.S 6 Jun 2004 02:12:38 -0000 1.11
+++ arch/mips/kernel/scall64-n32.S 8 Jun 2004 23:39:44 -0000
@@ -357,3 +357,4 @@
PTR compat_sys_mq_timedreceive
PTR compat_sys_mq_notify
PTR compat_sys_mq_getsetattr /* 6239 */
+ PTR sys_ni_syscall /* sys_vserver */
Index: arch/mips/kernel/scall64-o32.S
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/scall64-o32.S,v
retrieving revision 1.11
diff -u -r1.11 scall64-o32.S
--- arch/mips/kernel/scall64-o32.S 6 Jun 2004 02:12:38 -0000 1.11
+++ arch/mips/kernel/scall64-o32.S 8 Jun 2004 23:39:44 -0000
@@ -535,6 +535,7 @@
sys compat_sys_mq_timedreceive 5
sys compat_sys_mq_notify 2 /* 4275 */
sys compat_sys_mq_getsetattr 3
+ sys sys_ni_syscall 0 /* sys_vserver */
.endm
Index: include/asm-mips/unistd.h
===================================================================
RCS file: /home/cvs/linux/include/asm-mips/unistd.h,v
retrieving revision 1.62
diff -u -r1.62 unistd.h
--- include/asm-mips/unistd.h 6 Jun 2004 02:12:54 -0000 1.62
+++ include/asm-mips/unistd.h 8 Jun 2004 23:39:44 -0000
@@ -297,16 +297,17 @@
#define __NR_mq_timedreceive (__NR_Linux + 274)
#define __NR_mq_notify (__NR_Linux + 275)
#define __NR_mq_getsetattr (__NR_Linux + 276)
+#define __NR_vserver (__NR_Linux + 277)
/*
* Offset of the last Linux o32 flavoured syscall
*/
-#define __NR_Linux_syscalls 276
+#define __NR_Linux_syscalls 277
#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
#define __NR_O32_Linux 4000
-#define __NR_O32_Linux_syscalls 276
+#define __NR_O32_Linux_syscalls 277
#if _MIPS_SIM == _MIPS_SIM_ABI64
@@ -550,16 +551,17 @@
#define __NR_mq_timedreceive (__NR_Linux + 233)
#define __NR_mq_notify (__NR_Linux + 234)
#define __NR_mq_getsetattr (__NR_Linux + 235)
+#define __NR_vserver (__NR_Linux + 236)
/*
* Offset of the last Linux flavoured syscall
*/
-#define __NR_Linux_syscalls 235
+#define __NR_Linux_syscalls 236
#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
#define __NR_64_Linux 5000
-#define __NR_64_Linux_syscalls 235
+#define __NR_64_Linux_syscalls 236
#if _MIPS_SIM == _MIPS_SIM_NABI32
@@ -807,16 +809,17 @@
#define __NR_mq_timedreceive (__NR_Linux + 237)
#define __NR_mq_notify (__NR_Linux + 238)
#define __NR_mq_getsetattr (__NR_Linux + 239)
+#define __NR_vserver (__NR_Linux + 240)
/*
* Offset of the last N32 flavoured syscall
*/
-#define __NR_Linux_syscalls 239
+#define __NR_Linux_syscalls 240
#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
#define __NR_N32_Linux 6000
-#define __NR_N32_Linux_syscalls 239
+#define __NR_N32_Linux_syscalls 240
#ifndef __ASSEMBLY__
next prev parent reply other threads:[~2004-06-08 23:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-24 18:29 linux-vserver syscall Herbert Poetzl
2004-05-24 19:05 ` Herbert Poetzl
2004-06-08 23:54 ` Ralf Baechle [this message]
2004-06-09 14:44 ` Herbert Poetzl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040608235400.GA31706@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=herbert@13thfloor.at \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.