Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wu Zhangjin and committed by
Ralf Baechle
659da2ba c1b14a75

+8
+8
arch/mips/loongson/common/mem.c
··· 12 12 13 13 #include <loongson.h> 14 14 #include <mem.h> 15 + #include <pci.h> 15 16 16 17 void __init prom_init_memory(void) 17 18 { 18 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 23 #ifdef CONFIG_64BIT 20 24 if (highmemsize > 0) 21 25 add_memory_region(LOONGSON_HIGHMEM_START, 22 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 31 #endif /* CONFIG_64BIT */ 24 32 } 25 33