]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/mips/mips-boards/sim/sim_mem.c
[MIPS] Fixup damage done by 22a9835c350782a5c3257343713932af3ac92ee0.
[mirror_ubuntu-jammy-kernel.git] / arch / mips / mips-boards / sim / sim_mem.c
index ede9c27e450bcf644ebda450541636764385a06f..f7ce769833283b38c6af2ecc8c3c24dd1db6c352 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/init.h>
 #include <linux/mm.h>
 #include <linux/bootmem.h>
+#include <linux/pfn.h>
 
 #include <asm/bootinfo.h>
 #include <asm/page.h>
@@ -59,10 +60,10 @@ struct prom_pmemblock * __init prom_getmdesc(void)
 
        mdesc[2].type = simmem_reserved;
        mdesc[2].base = 0x00100000;
-       mdesc[2].size = CPHYSADDR(PAGE_ALIGN(&_end)) - mdesc[2].base;
+       mdesc[2].size = CPHYSADDR(PFN_ALIGN(&_end)) - mdesc[2].base;
 
        mdesc[3].type = simmem_free;
-       mdesc[3].base = CPHYSADDR(PAGE_ALIGN(&_end));
+       mdesc[3].base = CPHYSADDR(PFN_ALIGN(&_end));
        mdesc[3].size = memsize - mdesc[3].base;
 
        return &mdesc[0];