aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.0/010-mips_wire_up_new_sendmmsg_syscall.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2011-06-15 21:31:01 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2011-06-15 21:31:01 +0000
commit235e3319876d5d1354e2774ec73495fdeb2616ec (patch)
treed776ac5daed14d9e6ee5562e979d388420e8ff08 /target/linux/generic/patches-3.0/010-mips_wire_up_new_sendmmsg_syscall.patch
parent0db9c2bd7d3620ba18fa784bda702d971783b4f6 (diff)
downloadupstream-235e3319876d5d1354e2774ec73495fdeb2616ec.tar.gz
upstream-235e3319876d5d1354e2774ec73495fdeb2616ec.tar.bz2
upstream-235e3319876d5d1354e2774ec73495fdeb2616ec.zip
linux/generic: Add support for 3.0-rc3
Also make linux identify itself properly as 3.0, not 3.0.0. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> SVN-Revision: 27191
Diffstat (limited to 'target/linux/generic/patches-3.0/010-mips_wire_up_new_sendmmsg_syscall.patch')
-rw-r--r--target/linux/generic/patches-3.0/010-mips_wire_up_new_sendmmsg_syscall.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.0/010-mips_wire_up_new_sendmmsg_syscall.patch b/target/linux/generic/patches-3.0/010-mips_wire_up_new_sendmmsg_syscall.patch
new file mode 100644
index 0000000000..ae9117aebc
--- /dev/null
+++ b/target/linux/generic/patches-3.0/010-mips_wire_up_new_sendmmsg_syscall.patch
@@ -0,0 +1,61 @@
+--- a/arch/mips/include/asm/unistd.h
++++ b/arch/mips/include/asm/unistd.h
+@@ -363,17 +363,18 @@
+ #define __NR_open_by_handle_at (__NR_Linux + 340)
+ #define __NR_clock_adjtime (__NR_Linux + 341)
+ #define __NR_syncfs (__NR_Linux + 342)
+-#define __NR_setns (__NR_Linux + 343)
++#define __NR_sendmmsg (__NR_Linux + 343)
++#define __NR_setns (__NR_Linux + 344)
+
+ /*
+ * Offset of the last Linux o32 flavoured syscall
+ */
+-#define __NR_Linux_syscalls 343
++#define __NR_Linux_syscalls 344
+
+ #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
+
+ #define __NR_O32_Linux 4000
+-#define __NR_O32_Linux_syscalls 343
++#define __NR_O32_Linux_syscalls 344
+
+ #if _MIPS_SIM == _MIPS_SIM_ABI64
+
+--- a/arch/mips/kernel/scall32-o32.S
++++ b/arch/mips/kernel/scall32-o32.S
+@@ -589,6 +589,7 @@ einval: li v0, -ENOSYS
+ sys sys_open_by_handle_at 3 /* 4340 */
+ sys sys_clock_adjtime 2
+ sys sys_syncfs 1
++ sys sys_sendmmsg 4
+ sys sys_setns 2
+ .endm
+
+--- a/arch/mips/kernel/scall64-64.S
++++ b/arch/mips/kernel/scall64-64.S
+@@ -428,5 +428,6 @@ sys_call_table:
+ PTR sys_open_by_handle_at
+ PTR sys_clock_adjtime /* 5300 */
+ PTR sys_syncfs
++ PTR sys_sendmmsg
+ PTR sys_setns
+ .size sys_call_table,.-sys_call_table
+--- a/arch/mips/kernel/scall64-n32.S
++++ b/arch/mips/kernel/scall64-n32.S
+@@ -428,5 +428,6 @@ EXPORT(sysn32_call_table)
+ PTR sys_open_by_handle_at
+ PTR compat_sys_clock_adjtime /* 6305 */
+ PTR sys_syncfs
++ PTR compat_sys_sendmmsg
+ PTR sys_setns
+ .size sysn32_call_table,.-sysn32_call_table
+--- a/arch/mips/kernel/scall64-o32.S
++++ b/arch/mips/kernel/scall64-o32.S
+@@ -546,5 +546,6 @@ sys_call_table:
+ PTR compat_sys_open_by_handle_at /* 4340 */
+ PTR compat_sys_clock_adjtime
+ PTR sys_syncfs
++ PTR compat_sys_sendmmsg
+ PTR sys_setns
+ .size sys_call_table,.-sys_call_table