summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.18/0037-ia64-Add-accept4-syscall.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.18/0037-ia64-Add-accept4-syscall.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.18/0037-ia64-Add-accept4-syscall.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.18/0037-ia64-Add-accept4-syscall.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.18/0037-ia64-Add-accept4-syscall.patch
new file mode 100644
index 00000000..fa24f4d7
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.18/0037-ia64-Add-accept4-syscall.patch
@@ -0,0 +1,57 @@
1From 0ab7c7f97658245faa8a63b0e4870f5459f53e6e Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?=C3=89meric=20Maschino?= <emeric.maschino@gmail.com>
3Date: Mon, 9 Jan 2012 12:55:10 -0800
4Subject: [PATCH 37/56] ia64: Add accept4() syscall
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9commit 65cc21b4523e94d5640542a818748cd3be8cd6b4 upstream.
10
11While debugging udev > 170 failure on Debian Wheezy
12(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648325), it appears
13that the issue was in fact due to missing accept4() in ia64.
14
15This patch simply adds accept4() to ia64.
16
17Signed-off-by: Émeric Maschino <emeric.maschino@gmail.com>
18Signed-off-by: Tony Luck <tony.luck@intel.com>
19Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
20---
21 arch/ia64/include/asm/unistd.h | 3 ++-
22 arch/ia64/kernel/entry.S | 1 +
23 2 files changed, 3 insertions(+), 1 deletions(-)
24
25diff --git a/arch/ia64/include/asm/unistd.h b/arch/ia64/include/asm/unistd.h
26index 7617248..7a3bd25 100644
27--- a/arch/ia64/include/asm/unistd.h
28+++ b/arch/ia64/include/asm/unistd.h
29@@ -323,11 +323,12 @@
30 #define __NR_sendmmsg 1331
31 #define __NR_process_vm_readv 1332
32 #define __NR_process_vm_writev 1333
33+#define __NR_accept4 1334
34
35 #ifdef __KERNEL__
36
37
38-#define NR_syscalls 310 /* length of syscall table */
39+#define NR_syscalls 311 /* length of syscall table */
40
41 /*
42 * The following defines stop scripts/checksyscalls.sh from complaining about
43diff --git a/arch/ia64/kernel/entry.S b/arch/ia64/kernel/entry.S
44index 5b31d46..1ccbe12 100644
45--- a/arch/ia64/kernel/entry.S
46+++ b/arch/ia64/kernel/entry.S
47@@ -1779,6 +1779,7 @@ sys_call_table:
48 data8 sys_sendmmsg
49 data8 sys_process_vm_readv
50 data8 sys_process_vm_writev
51+ data8 sys_accept4
52
53 .org sys_call_table + 8*NR_syscalls // guard against failures to increase NR_syscalls
54 #endif /* __IA64_ASM_PARAVIRTUALIZED_NATIVE */
55--
561.7.7.6
57