Use PHYS_OFFSET.

SVN-Revision: 8685
master
Eugene Konev 17 years ago
parent 3520251c21
commit 538479305e
  1. 4
      target/linux/ar7/files/arch/mips/ar7/memory.c

@ -65,8 +65,8 @@ void __init prom_meminit(void)
unsigned long pages; unsigned long pages;
pages = memsize() >> PAGE_SHIFT; pages = memsize() >> PAGE_SHIFT;
add_memory_region(ARCH_PFN_OFFSET << PAGE_SHIFT, pages << add_memory_region(PHYS_OFFSET, pages << PAGE_SHIFT,
PAGE_SHIFT, BOOT_MEM_RAM); BOOT_MEM_RAM);
} }
void __init prom_free_prom_memory(void) void __init prom_free_prom_memory(void)

Loading…
Cancel
Save