diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-06-12 11:30:24 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-06-12 11:35:32 -0300 |
commit | f02df1092f12058bca3829dc435d4b768cee1975 (patch) | |
tree | 0e773bf392da712ee8e752df9afc12664562afc8 | |
parent | b6a1c979b849201809aa57781e5b0242559f3f2a (diff) | |
download | meta-fsl-arm-f02df1092f12058bca3829dc435d4b768cee1975.tar.gz |
linux-imx (2.6.35.3): use accept4 patch that was included mainline
This patch has been included in 2.6.36.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 files changed, 55 insertions, 32 deletions
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/001_Add_accept4_syscall.patch b/recipes-kernel/linux/linux-imx-2.6.35.3/001_Add_accept4_syscall.patch deleted file mode 100644 index 6480145..0000000 --- a/recipes-kernel/linux/linux-imx-2.6.35.3/001_Add_accept4_syscall.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | commit 4ac884455c992c7250eae2cdbd6ad1fbbe5d1dc0 | ||
2 | Author: Phil Endecott <git@chezphil.org> | ||
3 | Date: Mon Oct 31 20:23:38 2011 +0000 | ||
4 | |||
5 | Add accept4 syscall | ||
6 | |||
7 | diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h | ||
8 | index dd2bf53..d02cfb6 100644 | ||
9 | --- a/arch/arm/include/asm/unistd.h | ||
10 | +++ b/arch/arm/include/asm/unistd.h | ||
11 | @@ -392,6 +392,7 @@ | ||
12 | #define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363) | ||
13 | #define __NR_perf_event_open (__NR_SYSCALL_BASE+364) | ||
14 | #define __NR_recvmmsg (__NR_SYSCALL_BASE+365) | ||
15 | +#define __NR_accept4 (__NR_SYSCALL_BASE+366) | ||
16 | |||
17 | /* | ||
18 | * The following SWIs are ARM private. | ||
19 | diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S | ||
20 | index 37ae301..afeb71f 100644 | ||
21 | --- a/arch/arm/kernel/calls.S | ||
22 | +++ b/arch/arm/kernel/calls.S | ||
23 | @@ -375,6 +375,7 @@ | ||
24 | CALL(sys_rt_tgsigqueueinfo) | ||
25 | CALL(sys_perf_event_open) | ||
26 | /* 365 */ CALL(sys_recvmmsg) | ||
27 | + CALL(sys_accept4) | ||
28 | #ifndef syscalls_counted | ||
29 | .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls | ||
30 | #define syscalls_counted | ||
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/wire-up-sys_accept4-on-ARM.patch b/recipes-kernel/linux/linux-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/linux-imx-2.6.35.3/wire-up-sys_accept4-on-ARM.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | From 1415ec63689ef39bcb24b5095941ec4cc884035c Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikael Pettersson <mikpe@it.uu.se> | ||
3 | Date: Sun, 15 Aug 2010 10:47:23 +0100 | ||
4 | Subject: [PATCH 1/2] ARM: 6329/1: wire up sys_accept4() on ARM | ||
5 | |||
6 | sys_accept4() was added in kernel 2.6.28, but ARM was not updated | ||
7 | to include it. The number and types of parameters is such that | ||
8 | no ARM-specific processing is needed, so wiring up sys_accept4() | ||
9 | just requires defining __NR_accept4 and adding a direct call in | ||
10 | the syscall entry table. | ||
11 | |||
12 | Tested with an EABI 2.6.35 kernel and Ulrich Drepper's original | ||
13 | accept4() test program, modified to define __NR_accept4 for ARM. | ||
14 | |||
15 | Using the updated unistd.h also eliminates a warning then building | ||
16 | glibc (2.10.2 and newer) about accept4() being unimplemented. | ||
17 | |||
18 | Upstream-Status: Backport [2.6.36] | ||
19 | |||
20 | Signed-off-by: Mikael Pettersson <mikpe@it.uu.se> | ||
21 | Signed-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 | |||
27 | diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h | ||
28 | index 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. | ||
39 | diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S | ||
40 | index 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 | -- | ||
52 | 1.6.6.1 | ||
53 | |||
diff --git a/recipes-kernel/linux/linux-imx_2.6.35.3.bb b/recipes-kernel/linux/linux-imx_2.6.35.3.bb index aed6d96..f116b51 100644 --- a/recipes-kernel/linux/linux-imx_2.6.35.3.bb +++ b/recipes-kernel/linux/linux-imx_2.6.35.3.bb | |||
@@ -4,7 +4,7 @@ | |||
4 | DESCRIPTION = "Linux kernel for imx platforms" | 4 | DESCRIPTION = "Linux kernel for imx platforms" |
5 | LICENSE = "GPLv2" | 5 | LICENSE = "GPLv2" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
7 | PR = "r21" | 7 | PR = "r22" |
8 | 8 | ||
9 | inherit kernel | 9 | inherit kernel |
10 | COMPATIBLE_MACHINE = "(mxs|mx5)" | 10 | COMPATIBLE_MACHINE = "(mxs|mx5)" |
@@ -33,8 +33,8 @@ SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git;tag=rel_imx_2.6.35_11.0 | |||
33 | file://w1-fix-support-multiple-master.patch \ | 33 | file://w1-fix-support-multiple-master.patch \ |
34 | file://smsc95xx-randomize-mac-once.patch \ | 34 | file://smsc95xx-randomize-mac-once.patch \ |
35 | file://dm9601-support-for-usb-ethernet-0x0fe6-0x9700.patch \ | 35 | file://dm9601-support-for-usb-ethernet-0x0fe6-0x9700.patch \ |
36 | file://wire-up-sys_accept4-on-ARM.patch \ | ||
36 | file://0001-mx53_loco-add-USR-led-support.patch \ | 37 | file://0001-mx53_loco-add-USR-led-support.patch \ |
37 | file://001_Add_accept4_syscall.patch \ | ||
38 | file://002_Return_ERESTARTSYS_from_IPU_GET_EVENT.patch \ | 38 | file://002_Return_ERESTARTSYS_from_IPU_GET_EVENT.patch \ |
39 | file://003_Sanitise_ipu_interrupt_return_value.patch \ | 39 | file://003_Sanitise_ipu_interrupt_return_value.patch \ |
40 | file://defconfig \ | 40 | file://defconfig \ |