#include <linux/init.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
-#include <linux/pfn.h>
#include <asm/bootinfo.h>
#include <asm/page.h>
-#include <asm/sections.h>
#include <asm/mips-boards/prom.h>
};
#endif
+/* References to section boundaries */
+extern char _end;
+
+#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
+
+
struct prom_pmemblock * __init prom_getmdesc(void)
{
unsigned int memsize;
while (addr < boot_mem_map.map[i].addr
+ boot_mem_map.map[i].size) {
ClearPageReserved(virt_to_page(__va(addr)));
- init_page_count(virt_to_page(__va(addr)));
+ set_page_count(virt_to_page(__va(addr)), 1);
free_page((unsigned long)__va(addr));
addr += PAGE_SIZE;
freed += PAGE_SIZE;