From: Atsushi Nemoto Date: Mon, 1 Sep 2008 13:22:41 +0000 (+0900) Subject: MIPS: TXx9: Implement prom_free_prom_memory X-Git-Tag: v2.6.28-rc1~719^2~17 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b6263ff2d6e58cc2fe615219ab2a06778b5e6cef;p=linux-2.6-omap-h63xx.git MIPS: TXx9: Implement prom_free_prom_memory Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index 7a05c34c1de..5526375010f 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -394,6 +395,11 @@ void __init prom_init(void) void __init prom_free_prom_memory(void) { + unsigned long saddr = PAGE_SIZE; + unsigned long eaddr = __pa_symbol(&_text); + + if (saddr < eaddr) + free_init_pages("prom memory", saddr, eaddr); } const char *get_system_type(void)