From 0893d3fb8d27320d4301f14a0b331df291a08044 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 15 Jan 2014 14:06:03 +0000 Subject: MIPS: mm: init: Add free_init_pages() callback for EVA A core in EVA mode can have any possible segment mapping, so the default free_initmem_default() function may not always work as expected. Therefore, add a callback that platforms can use to free up the init section. Signed-off-by: Markos Chandras --- arch/mips/include/asm/bootinfo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/mips/include') diff --git a/arch/mips/include/asm/bootinfo.h b/arch/mips/include/asm/bootinfo.h index 4d2cdea5aa37..83a4db4e3794 100644 --- a/arch/mips/include/asm/bootinfo.h +++ b/arch/mips/include/asm/bootinfo.h @@ -112,6 +112,8 @@ extern void prom_free_prom_memory(void); extern void free_init_pages(const char *what, unsigned long begin, unsigned long end); +extern void (*free_init_pages_eva)(void *begin, void *end); + /* * Initial kernel command line, usually setup by prom_init() */ -- cgit v1.2.3