summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-davinci/0001-ARM-6329-1-wire-up-sys_accept4-on-ARM.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-davinci/0001-ARM-6329-1-wire-up-sys_accept4-on-ARM.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-davinci/0001-ARM-6329-1-wire-up-sys_accept4-on-ARM.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-davinci/0001-ARM-6329-1-wire-up-sys_accept4-on-ARM.patch b/extras/recipes-kernel/linux/linux-davinci/0001-ARM-6329-1-wire-up-sys_accept4-on-ARM.patch
new file mode 100644
index 00000000..0f4592e2
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-davinci/0001-ARM-6329-1-wire-up-sys_accept4-on-ARM.patch
@@ -0,0 +1,51 @@
1From 1415ec63689ef39bcb24b5095941ec4cc884035c Mon Sep 17 00:00:00 2001
2From: Mikael Pettersson <mikpe@it.uu.se>
3Date: Sun, 15 Aug 2010 10:47:23 +0100
4Subject: [PATCH 1/2] ARM: 6329/1: wire up sys_accept4() on ARM
5
6sys_accept4() was added in kernel 2.6.28, but ARM was not updated
7to include it. The number and types of parameters is such that
8no ARM-specific processing is needed, so wiring up sys_accept4()
9just requires defining __NR_accept4 and adding a direct call in
10the syscall entry table.
11
12Tested with an EABI 2.6.35 kernel and Ulrich Drepper's original
13accept4() test program, modified to define __NR_accept4 for ARM.
14
15Using the updated unistd.h also eliminates a warning then building
16glibc (2.10.2 and newer) about accept4() being unimplemented.
17
18Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
19Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
20---
21 arch/arm/include/asm/unistd.h | 1 +
22 arch/arm/kernel/calls.S | 1 +
23 2 files changed, 2 insertions(+), 0 deletions(-)
24
25diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h
26index dd2bf53..d02cfb6 100644
27--- a/arch/arm/include/asm/unistd.h
28+++ b/arch/arm/include/asm/unistd.h
29@@ -392,6 +392,7 @@
30 #define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363)
31 #define __NR_perf_event_open (__NR_SYSCALL_BASE+364)
32 #define __NR_recvmmsg (__NR_SYSCALL_BASE+365)
33+#define __NR_accept4 (__NR_SYSCALL_BASE+366)
34
35 /*
36 * The following SWIs are ARM private.
37diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S
38index 37ae301..afeb71f 100644
39--- a/arch/arm/kernel/calls.S
40+++ b/arch/arm/kernel/calls.S
41@@ -375,6 +375,7 @@
42 CALL(sys_rt_tgsigqueueinfo)
43 CALL(sys_perf_event_open)
44 /* 365 */ CALL(sys_recvmmsg)
45+ CALL(sys_accept4)
46 #ifndef syscalls_counted
47 .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
48 #define syscalls_counted
49--
501.6.6.1
51