diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-09-01 22:22:41 +0900 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-11 16:18:49 +0100 |
commit | b6263ff2d6e58cc2fe615219ab2a06778b5e6cef (patch) | |
tree | 9d60984484a34eda6180e4d9c307d8b3174aea7b /arch/mips/txx9 | |
parent | b27311e1cace4e296ace786c886d22f7a8ec78d6 (diff) | |
download | op-kernel-dev-b6263ff2d6e58cc2fe615219ab2a06778b5e6cef.zip op-kernel-dev-b6263ff2d6e58cc2fe615219ab2a06778b5e6cef.tar.gz |
MIPS: TXx9: Implement prom_free_prom_memory
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/txx9')
-rw-r--r-- | arch/mips/txx9/generic/setup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index 7a05c34..5526375 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c @@ -28,6 +28,7 @@ #include <asm/time.h> #include <asm/reboot.h> #include <asm/r4kcache.h> +#include <asm/sections.h> #include <asm/txx9/generic.h> #include <asm/txx9/pci.h> #include <asm/txx9tmr.h> @@ -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) |