[MIPS] Fixup damage done by 22a9835c35
.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
9c1f1257a3
commit
fde3505c69
2 changed files with 6 additions and 4 deletions
|
@ -22,6 +22,7 @@
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/bootmem.h>
|
#include <linux/bootmem.h>
|
||||||
|
#include <linux/pfn.h>
|
||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
|
|
||||||
#include <asm/bootinfo.h>
|
#include <asm/bootinfo.h>
|
||||||
|
@ -104,10 +105,10 @@ struct prom_pmemblock * __init prom_getmdesc(void)
|
||||||
|
|
||||||
mdesc[3].type = yamon_dontuse;
|
mdesc[3].type = yamon_dontuse;
|
||||||
mdesc[3].base = 0x00100000;
|
mdesc[3].base = 0x00100000;
|
||||||
mdesc[3].size = CPHYSADDR(PAGE_ALIGN((unsigned long)&_end)) - mdesc[3].base;
|
mdesc[3].size = CPHYSADDR(PFN_ALIGN((unsigned long)&_end)) - mdesc[3].base;
|
||||||
|
|
||||||
mdesc[4].type = yamon_free;
|
mdesc[4].type = yamon_free;
|
||||||
mdesc[4].base = CPHYSADDR(PAGE_ALIGN(&_end));
|
mdesc[4].base = CPHYSADDR(PFN_ALIGN(&_end));
|
||||||
mdesc[4].size = memsize - mdesc[4].base;
|
mdesc[4].size = memsize - mdesc[4].base;
|
||||||
|
|
||||||
return &mdesc[0];
|
return &mdesc[0];
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/bootmem.h>
|
#include <linux/bootmem.h>
|
||||||
|
#include <linux/pfn.h>
|
||||||
|
|
||||||
#include <asm/bootinfo.h>
|
#include <asm/bootinfo.h>
|
||||||
#include <asm/page.h>
|
#include <asm/page.h>
|
||||||
|
@ -59,10 +60,10 @@ struct prom_pmemblock * __init prom_getmdesc(void)
|
||||||
|
|
||||||
mdesc[2].type = simmem_reserved;
|
mdesc[2].type = simmem_reserved;
|
||||||
mdesc[2].base = 0x00100000;
|
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].type = simmem_free;
|
||||||
mdesc[3].base = CPHYSADDR(PAGE_ALIGN(&_end));
|
mdesc[3].base = CPHYSADDR(PFN_ALIGN(&_end));
|
||||||
mdesc[3].size = memsize - mdesc[3].base;
|
mdesc[3].size = memsize - mdesc[3].base;
|
||||||
|
|
||||||
return &mdesc[0];
|
return &mdesc[0];
|
||||||
|
|
Loading…
Reference in a new issue