summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-06-12 11:39:52 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2012-06-12 11:39:52 -0300
commitfc06661291bb97a778bd2f8225c66afc1c7ce680 (patch)
tree1ce52d9dae588e15f3783ef8042bece94f4a45a8
parentf02df1092f12058bca3829dc435d4b768cee1975 (diff)
downloadmeta-fsl-arm-fc06661291bb97a778bd2f8225c66afc1c7ce680.tar.gz
linux-libc-headers-imx (2.6.35.3): add patch to export accept4 syscall
This patch has been backported from 2.6.36 and needs to be included here, besides the kernel, to properly export the syscall to libc headers. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-kernel/linux-libc-headers/linux-libc-headers-imx-2.6.35.3/wire-up-sys_accept4-on-ARM.patch53
-rw-r--r--recipes-kernel/linux-libc-headers/linux-libc-headers-imx_2.6.35.3.bb5
2 files changed, 56 insertions, 2 deletions
diff --git a/recipes-kernel/linux-libc-headers/linux-libc-headers-imx-2.6.35.3/wire-up-sys_accept4-on-ARM.patch b/recipes-kernel/linux-libc-headers/linux-libc-headers-imx-2.6.35.3/wire-up-sys_accept4-on-ARM.patch
new file mode 100644
index 0000000..7182e80
--- /dev/null
+++ b/recipes-kernel/linux-libc-headers/linux-libc-headers-imx-2.6.35.3/wire-up-sys_accept4-on-ARM.patch
@@ -0,0 +1,53 @@
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
18Upstream-Status: Backport [2.6.36]
19
20Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
21Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
22---
23 arch/arm/include/asm/unistd.h | 1 +
24 arch/arm/kernel/calls.S | 1 +
25 2 files changed, 2 insertions(+), 0 deletions(-)
26
27diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h
28index dd2bf53..d02cfb6 100644
29--- a/arch/arm/include/asm/unistd.h
30+++ b/arch/arm/include/asm/unistd.h
31@@ -392,6 +392,7 @@
32 #define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363)
33 #define __NR_perf_event_open (__NR_SYSCALL_BASE+364)
34 #define __NR_recvmmsg (__NR_SYSCALL_BASE+365)
35+#define __NR_accept4 (__NR_SYSCALL_BASE+366)
36
37 /*
38 * The following SWIs are ARM private.
39diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S
40index 37ae301..afeb71f 100644
41--- a/arch/arm/kernel/calls.S
42+++ b/arch/arm/kernel/calls.S
43@@ -375,6 +375,7 @@
44 CALL(sys_rt_tgsigqueueinfo)
45 CALL(sys_perf_event_open)
46 /* 365 */ CALL(sys_recvmmsg)
47+ CALL(sys_accept4)
48 #ifndef syscalls_counted
49 .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
50 #define syscalls_counted
51--
521.6.6.1
53
diff --git a/recipes-kernel/linux-libc-headers/linux-libc-headers-imx_2.6.35.3.bb b/recipes-kernel/linux-libc-headers/linux-libc-headers-imx_2.6.35.3.bb
index 7b33733..f2274e3 100644
--- a/recipes-kernel/linux-libc-headers/linux-libc-headers-imx_2.6.35.3.bb
+++ b/recipes-kernel/linux-libc-headers/linux-libc-headers-imx_2.6.35.3.bb
@@ -4,7 +4,8 @@ PROVIDES = "linux-libc-headers"
4RPROVIDES_${PN}-dev = "linux-libc-headers-dev" 4RPROVIDES_${PN}-dev = "linux-libc-headers-dev"
5RPROVIDES_${PN}-dbg = "linux-libc-headers-dbg" 5RPROVIDES_${PN}-dbg = "linux-libc-headers-dbg"
6 6
7SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git;tag=rel_imx_2.6.35_11.09.01" 7SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git;tag=rel_imx_2.6.35_11.09.01 \
8 file://wire-up-sys_accept4-on-ARM.patch"
8S = "${WORKDIR}/git" 9S = "${WORKDIR}/git"
9 10
10PR = "r2" 11PR = "r3"