[PATCH -mm 10/10] unshare system call -v5 : system call registration for x86_64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[PATCH -mm 10/10] unshare system call: system call registration for x86_64

Registers system call for the x86_64 architecture.

Changes since -v4 of this patch submitted on 12/13/05:
        - Forward ported to 2.6.15-mm3 which modified the syscall number.

Signed-off-by: Janak Desai <[email protected]>

---

 arch/x86_64/ia32/ia32entry.S     |    1 +
 include/asm-x86_64/ia32_unistd.h |    3 ++-
 include/asm-x86_64/unistd.h      |    4 +++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff -Naurp 2.6.15-mm3/arch/x86_64/ia32/ia32entry.S 2.6.15-mm3+unsh-x86_64/arch/x86_64/ia32/ia32entry.S
--- 2.6.15-mm3/arch/x86_64/ia32/ia32entry.S	2006-01-11 20:21:49.000000000 +0000
+++ 2.6.15-mm3+unsh-x86_64/arch/x86_64/ia32/ia32entry.S	2006-01-12 00:49:51.000000000 +0000
@@ -685,6 +685,7 @@ ia32_sys_call_table:
 	.quad sys_readlinkat		/* 305 */
 	.quad sys_fchmodat
 	.quad sys_faccessat
+	.quad sys_unshare
 ia32_syscall_end:		
 	.rept IA32_NR_syscalls-(ia32_syscall_end-ia32_sys_call_table)/8
 		.quad ni_syscall
diff -Naurp 2.6.15-mm3/include/asm-x86_64/ia32_unistd.h 2.6.15-mm3+unsh-x86_64/include/asm-x86_64/ia32_unistd.h
--- 2.6.15-mm3/include/asm-x86_64/ia32_unistd.h	2006-01-11 20:22:17.000000000 +0000
+++ 2.6.15-mm3+unsh-x86_64/include/asm-x86_64/ia32_unistd.h	2006-01-12 00:51:13.000000000 +0000
@@ -313,7 +313,8 @@
 #define __NR_ia32_readlinkat		305
 #define __NR_ia32_fchmodat		306
 #define __NR_ia32_faccessat		307
+#define __NR_ia32_unshare		308
 
-#define IA32_NR_syscalls 308	/* must be > than biggest syscall! */
+#define IA32_NR_syscalls 309	/* must be > than biggest syscall! */
 
 #endif /* _ASM_X86_64_IA32_UNISTD_H_ */
diff -Naurp 2.6.15-mm3/include/asm-x86_64/unistd.h 2.6.15-mm3+unsh-x86_64/include/asm-x86_64/unistd.h
--- 2.6.15-mm3/include/asm-x86_64/unistd.h	2006-01-11 20:22:17.000000000 +0000
+++ 2.6.15-mm3+unsh-x86_64/include/asm-x86_64/unistd.h	2006-01-12 00:54:02.000000000 +0000
@@ -599,8 +599,10 @@ __SYSCALL(__NR_readlinkat, sys_readlinka
 __SYSCALL(__NR_fchmodat, sys_fchmodat)
 #define __NR_faccessat		269
 __SYSCALL(__NR_faccessat, sys_faccessat)
+#define __NR_unshare		270
+__SYSCALL(__NR_unshare, sys_unshare)
 
-#define __NR_syscall_max __NR_faccessat
+#define __NR_syscall_max __NR_unshare
 
 #ifndef __NO_STUBS
 


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux