aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Konev <ejka@openwrt.org>2007-09-08 09:16:30 +0000
committerEugene Konev <ejka@openwrt.org>2007-09-08 09:16:30 +0000
commitaf244c496bbe9f0314bb97c5b0f3b5c4c0b2b946 (patch)
tree559410c4463fe149d832b46fece56e23f0e944f6
parentd7c5042bd3e663c9990c9a09b265571134a1c6b6 (diff)
downloadupstream-af244c496bbe9f0314bb97c5b0f3b5c4c0b2b946.tar.gz
upstream-af244c496bbe9f0314bb97c5b0f3b5c4c0b2b946.tar.bz2
upstream-af244c496bbe9f0314bb97c5b0f3b5c4c0b2b946.zip
Use PHYS_OFFSET.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8685 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar7/files/arch/mips/ar7/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar7/files/arch/mips/ar7/memory.c b/target/linux/ar7/files/arch/mips/ar7/memory.c
index 99faf217b7..4c930c08c9 100644
--- a/target/linux/ar7/files/arch/mips/ar7/memory.c
+++ b/target/linux/ar7/files/arch/mips/ar7/memory.c
@@ -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)