diff options
author | Eugene Konev <ejka@openwrt.org> | 2007-03-19 17:25:06 +0000 |
---|---|---|
committer | Eugene Konev <ejka@openwrt.org> | 2007-03-19 17:25:06 +0000 |
commit | 3e1add7fefecc18089ff7ade4465c8af7b0bbfe2 (patch) | |
tree | 06290924dd201f14b452e9ab8b6ca94a62b6d802 /target/linux/ar7-2.6/files/arch/mips/ar7/memory.c | |
parent | 42eafd8be20c56f228347d502e785476a1636e8d (diff) | |
download | master-187ad058-3e1add7fefecc18089ff7ade4465c8af7b0bbfe2.tar.gz master-187ad058-3e1add7fefecc18089ff7ade4465c8af7b0bbfe2.tar.bz2 master-187ad058-3e1add7fefecc18089ff7ade4465c8af7b0bbfe2.zip |
Remove initrd code leftovers. Also fixes "Bad page state" on boot
(kernel tried to free initramfs twice).
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7-2.6/files/arch/mips/ar7/memory.c')
-rw-r--r-- | target/linux/ar7-2.6/files/arch/mips/ar7/memory.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/target/linux/ar7-2.6/files/arch/mips/ar7/memory.c b/target/linux/ar7-2.6/files/arch/mips/ar7/memory.c index ea5b5bee77..17cb740b3f 100644 --- a/target/linux/ar7-2.6/files/arch/mips/ar7/memory.c +++ b/target/linux/ar7-2.6/files/arch/mips/ar7/memory.c @@ -25,7 +25,6 @@ */ #include <linux/bootmem.h> #include <linux/init.h> -#include <linux/initrd.h> #include <linux/mm.h> #include <linux/module.h> #include <linux/pfn.h> @@ -68,8 +67,6 @@ static int __init memsize(void) return result; } -extern unsigned long __initramfs_start, __initramfs_end; - #ifdef CONFIG_NEED_MULTIPLE_NODES static bootmem_data_t node_bootmem_data; pg_data_t __node_data[1] = { @@ -176,11 +173,6 @@ void __init prom_meminit(void) unsigned long bootmap_size; #endif -#ifdef CONFIG_BLK_DEV_INITRD - initrd_start = (unsigned long)&__initramfs_start; - initrd_end = (unsigned long)&__initramfs_end; -#endif - pages = memsize() >> PAGE_SHIFT; add_memory_region(ARCH_PFN_OFFSET << PAGE_SHIFT, pages << PAGE_SHIFT, BOOT_MEM_RAM); |