]> git.karo-electronics.de Git - linux-beck.git/blobdiff - arch/mips/lemote/lm2e/mem.c
MIPS: Loongson: Split the implementation of prom and setup parts
[linux-beck.git] / arch / mips / lemote / lm2e / mem.c
index 16cd21587d34cc6a0e384177f25c33e4a59dd776..f24af70b669bc19197da7b018052fcaf4d51fa73 100644 (file)
@@ -8,6 +8,19 @@
 #include <linux/fcntl.h>
 #include <linux/mm.h>
 
+#include <asm/bootinfo.h>
+
+extern unsigned long memsize, highmemsize;
+
+void __init prom_init_memory(void)
+{
+    add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM);
+#ifdef CONFIG_64BIT
+    if (highmemsize > 0)
+               add_memory_region(0x20000000, highmemsize << 20, BOOT_MEM_RAM);
+#endif /* CONFIG_64BIT */
+}
+
 /* override of arch/mips/mm/cache.c: __uncached_access */
 int __uncached_access(struct file *file, unsigned long addr)
 {