Use PHYS_OFFSET.
authorejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 8 Sep 2007 09:16:30 +0000 (09:16 +0000)
committerejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 8 Sep 2007 09:16:30 +0000 (09:16 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8685 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ar7/files/arch/mips/ar7/memory.c

index 99faf21..4c930c0 100644 (file)
@@ -65,8 +65,8 @@ void __init prom_meminit(void)
        unsigned long pages;
 
        pages = memsize() >> PAGE_SHIFT;
-       add_memory_region(ARCH_PFN_OFFSET << PAGE_SHIFT, pages <<
-                         PAGE_SHIFT, BOOT_MEM_RAM);
+       add_memory_region(PHYS_OFFSET, pages << PAGE_SHIFT,
+                         BOOT_MEM_RAM);
 }
 
 void __init prom_free_prom_memory(void)
This page took 0.028021 seconds and 4 git commands to generate.