From patchwork Fri Jun 5 02:54:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wengbj X-Patchwork-Id: 480984 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 72D6E140213 for ; Fri, 5 Jun 2015 12:54:07 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4F8ED28C0D0; Fri, 5 Jun 2015 04:52:24 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id CBDE228C0B8 for ; Fri, 5 Jun 2015 04:52:14 +0200 (CEST) X-policyd-weight: using cached result; rate: -5.5 Received: from regular1.263xmail.com (regular1.263xmail.com [211.150.99.134]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 5 Jun 2015 04:52:14 +0200 (CEST) Received: from fl.service?t-firefly.com (unknown [192.168.167.156]) by regular1.263xmail.com (Postfix) with SMTP id 5482B6FDF; Fri, 5 Jun 2015 10:53:23 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 1 Received: from mae.263xmail.com (unknown [115.29.200.205]) by smtp.263.net (Postfix) with ESMTP id 1D0D712F49; Fri, 5 Jun 2015 10:53:23 +0800 (CST) Received: from fl.service?t-firefly.com (localhost [127.0.0.1]) by mae.263xmail.com (Postfix) with SMTP id 1551021F002; Fri, 5 Jun 2015 10:53:23 +0800 (CST) X-MAE-MAIL_UID: 0055710f220f0286@maes@d156b799b952bbd3 X-MAE-ID: 223.6.254.61 X-RL-NAME: fl.service@t-firefly.com X-LOGIN-NAME: fl.service@t-firefly.com X-SENDER-IP: 183.57.25.242 X-SENDER: fl.service@t-firefly.com From: wengbj To: blogic@openwrt.org Date: Fri, 5 Jun 2015 10:54:32 +0800 Message-Id: <1433472873-24798-1-git-send-email-fl.service@t-firefly.com> X-Mailer: git-send-email 1.7.9.5 Cc: fl.service@t-firefly.com, zxf@t-chip.com.cn, linux.c@foxmail.com, dxj@t-chip.com.cn, wbj@t-chip.com.cn, openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH 1/2] kernel: when enable HIGHMEM use long jump X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: wengbj --- ...ing-long-jump-when-memory-more-then-256mb.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 target/linux/ramips/patches-3.18/0112-using-long-jump-when-memory-more-then-256mb.patch diff --git a/target/linux/ramips/patches-3.18/0112-using-long-jump-when-memory-more-then-256mb.patch b/target/linux/ramips/patches-3.18/0112-using-long-jump-when-memory-more-then-256mb.patch new file mode 100644 index 0000000..5029356 --- /dev/null +++ b/target/linux/ramips/patches-3.18/0112-using-long-jump-when-memory-more-then-256mb.patch @@ -0,0 +1,19 @@ +Index: linux-3.18.14/arch/mips/Makefile +=================================================================== +--- linux-3.18.14.orig/arch/mips/Makefile 2015-06-05 09:52:08.144682065 +0800 ++++ linux-3.18.14/arch/mips/Makefile 2015-06-05 09:58:40.472673911 +0800 +@@ -94,9 +94,14 @@ + KBUILD_AFLAGS_MODULE += -mlong-calls + KBUILD_CFLAGS_MODULE += -mlong-calls + else ++ifdef CONFIG_HIGHMEM ++KBUILD_AFLAGS_MODULE += -mlong-calls ++KBUILD_CFLAGS_MODULE += -mlong-calls ++else + KBUILD_AFLAGS_MODULE += -mno-long-calls + KBUILD_CFLAGS_MODULE += -mno-long-calls + endif ++endif + + ifndef CONFIG_FUNCTION_TRACER + KBUILD_CFLAGS_KERNEL += -ffunction-sections -fdata-sections