diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2012-05-01 07:00:17 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2012-05-01 07:00:17 +0000 |
commit | 880de62f91bcffe7f1c7f16c9463e10853fa2524 (patch) | |
tree | 058bb1c73786a7bf492cc1a554effe4692a9b50e /target/linux/coldfire/patches/043-workaround-for-zero-page-used-on-ColdFire-platform.patch | |
parent | 7a8d12bafaf8b882d0278156e5f22d0a396687e2 (diff) | |
download | mtk-20170518-880de62f91bcffe7f1c7f16c9463e10853fa2524.zip mtk-20170518-880de62f91bcffe7f1c7f16c9463e10853fa2524.tar.gz mtk-20170518-880de62f91bcffe7f1c7f16c9463e10853fa2524.tar.bz2 |
switch to 2.6.38
SVN-Revision: 31546
Diffstat (limited to 'target/linux/coldfire/patches/043-workaround-for-zero-page-used-on-ColdFire-platform.patch')
-rw-r--r-- | target/linux/coldfire/patches/043-workaround-for-zero-page-used-on-ColdFire-platform.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/coldfire/patches/043-workaround-for-zero-page-used-on-ColdFire-platform.patch b/target/linux/coldfire/patches/043-workaround-for-zero-page-used-on-ColdFire-platform.patch new file mode 100644 index 0000000..0182b09 --- /dev/null +++ b/target/linux/coldfire/patches/043-workaround-for-zero-page-used-on-ColdFire-platform.patch @@ -0,0 +1,33 @@ +From fa27f3e27863e3f4376864b144dc7506de124cf6 Mon Sep 17 00:00:00 2001 +From: Jason Jin <Jason.jin@freescale.com> +Date: Thu, 4 Aug 2011 09:59:54 +0800 +Subject: [PATCH 43/52] workaround for zero page used on ColdFire platform. + +There is some issue for Coldfire platform to use the +zero page for read when there is memory fault. This is +a workaround for this, try to make kernel to use normal +memory instead. + +Signed-off-by: Jason Jin <Jason.jin@freescale.com> +--- + mm/memory.c | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +--- a/mm/memory.c ++++ b/mm/memory.c +@@ -2937,6 +2937,7 @@ static int do_anonymous_page(struct mm_s + if (check_stack_guard_page(vma, address) < 0) + return VM_FAULT_SIGBUS; + ++#ifndef CONFIG_COLDFIRE + /* Use the zero-page for reads */ + if (!(flags & FAULT_FLAG_WRITE)) { + entry = pte_mkspecial(pfn_pte(my_zero_pfn(address), +@@ -2946,6 +2947,7 @@ static int do_anonymous_page(struct mm_s + goto unlock; + goto setpte; + } ++#endif + + /* Allocate our own private page. */ + if (unlikely(anon_vma_prepare(vma))) |