aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson
diff options
context:
space:
mode:
authorWu Zhangjin <wuzhangjin@gmail.com>2009-10-16 02:17:15 -0400
committerRalf Baechle <ralf@linux-mips.org>2009-12-16 20:57:02 -0500
commit659da2ba3ebf53dc49f7f9a357a1aef046bf3139 (patch)
tree233c126dd17a4b361ae77e37e5ce9bbb7a149e05 /arch/mips/loongson
parentc1b14a7545e26fc08ea524b58ac590304484ce4f (diff)
MIPS: Loongson: Register reserved memory pages
Register reserved pages for Loongson family machines. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Cc: Linux-MIPS <linux-mips@linux-mips.org> Cc: yanh@lemote.com, Cc: huhb@lemote.com Cc: Zhang Le <r0bertz@gentoo.org> Cc: zhangfx@lemote.com, Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/loongson')
-rw-r--r--arch/mips/loongson/common/mem.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/loongson/common/mem.c b/arch/mips/loongson/common/mem.c
index e94ef158f98..3f7f153b197 100644
--- a/arch/mips/loongson/common/mem.c
+++ b/arch/mips/loongson/common/mem.c
@@ -12,14 +12,22 @@
12 12
13#include <loongson.h> 13#include <loongson.h>
14#include <mem.h> 14#include <mem.h>
15#include <pci.h>
15 16
16void __init prom_init_memory(void) 17void __init prom_init_memory(void)
17{ 18{
18 add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM); 19 add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM);
20
21 add_memory_region(memsize << 20, LOONGSON_PCI_MEM_START - (memsize <<
22 20), BOOT_MEM_RESERVED);
19#ifdef CONFIG_64BIT 23#ifdef CONFIG_64BIT
20 if (highmemsize > 0) 24 if (highmemsize > 0)
21 add_memory_region(LOONGSON_HIGHMEM_START, 25 add_memory_region(LOONGSON_HIGHMEM_START,
22 highmemsize << 20, BOOT_MEM_RAM); 26 highmemsize << 20, BOOT_MEM_RAM);
27
28 add_memory_region(LOONGSON_PCI_MEM_END + 1, LOONGSON_HIGHMEM_START -
29 LOONGSON_PCI_MEM_END - 1, BOOT_MEM_RESERVED);
30
23#endif /* CONFIG_64BIT */ 31#endif /* CONFIG_64BIT */
24} 32}
25 33