0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include <linux/init.h>
0015 #include <linux/memblock.h>
0016 #include <linux/string.h>
0017
0018 #include <asm/bootinfo.h>
0019 #include <asm/cdmm.h>
0020 #include <asm/maar.h>
0021 #include <asm/sections.h>
0022 #include <asm/fw/fw.h>
0023
0024
0025 unsigned long physical_memsize = 0L;
0026
0027 static void free_init_pages_eva_malta(void *begin, void *end)
0028 {
0029 free_init_pages("unused kernel", __pa_symbol((unsigned long *)begin),
0030 __pa_symbol((unsigned long *)end));
0031 }
0032
0033 void __init fw_meminit(void)
0034 {
0035 bool eva = IS_ENABLED(CONFIG_EVA);
0036
0037 free_init_pages_eva = eva ? free_init_pages_eva_malta : NULL;
0038 }
0039
0040 phys_addr_t mips_cdmm_phys_base(void)
0041 {
0042
0043 return 0x1fc10000;
0044 }