summaryrefslogtreecommitdiff
path: root/target/linux/ar7/patches-3.3/200-free-mem-below-kernel-offset.patch
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-05-20 12:42:44 +0000
committerJonas Gorski <jogo@openwrt.org>2013-05-20 12:42:44 +0000
commit3ac261cd21fb1d9df3acd03c2818002b0eb07ea7 (patch)
tree163f4309a9468fa2bc330f17c0152bc13839095c /target/linux/ar7/patches-3.3/200-free-mem-below-kernel-offset.patch
parent334e6d4e0cb43a31a38d3cc7f7ad6a9411e7460b (diff)
downloadmtk-20170518-3ac261cd21fb1d9df3acd03c2818002b0eb07ea7.zip
mtk-20170518-3ac261cd21fb1d9df3acd03c2818002b0eb07ea7.tar.gz
mtk-20170518-3ac261cd21fb1d9df3acd03c2818002b0eb07ea7.tar.bz2
ar7: drop obsolete 3.3 support
Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 36674
Diffstat (limited to 'target/linux/ar7/patches-3.3/200-free-mem-below-kernel-offset.patch')
-rw-r--r--target/linux/ar7/patches-3.3/200-free-mem-below-kernel-offset.patch15
1 files changed, 0 insertions, 15 deletions
diff --git a/target/linux/ar7/patches-3.3/200-free-mem-below-kernel-offset.patch b/target/linux/ar7/patches-3.3/200-free-mem-below-kernel-offset.patch
deleted file mode 100644
index 399822a..0000000
--- a/target/linux/ar7/patches-3.3/200-free-mem-below-kernel-offset.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- a/arch/mips/ar7/memory.c
-+++ b/arch/mips/ar7/memory.c
-@@ -67,5 +67,11 @@ void __init prom_meminit(void)
-
- void __init prom_free_prom_memory(void)
- {
-- /* Nothing to free */
-+ /* adapted from arch/mips/txx9/generic/setup.c */
-+ unsigned long saddr = PHYS_OFFSET + PAGE_SIZE;
-+ unsigned long eaddr = __pa_symbol(&_text);
-+
-+ /* free memory between prom-record and kernel _text base */
-+ if (saddr < eaddr)
-+ free_init_pages("prom memory", saddr, eaddr);
- }