aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/txx9/generic/setup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
index 7a05c34c1dec..5526375010f8 100644
--- a/arch/mips/txx9/generic/setup.c
+++ b/arch/mips/txx9/generic/setup.c
@@ -28,6 +28,7 @@
28#include <asm/time.h> 28#include <asm/time.h>
29#include <asm/reboot.h> 29#include <asm/reboot.h>
30#include <asm/r4kcache.h> 30#include <asm/r4kcache.h>
31#include <asm/sections.h>
31#include <asm/txx9/generic.h> 32#include <asm/txx9/generic.h>
32#include <asm/txx9/pci.h> 33#include <asm/txx9/pci.h>
33#include <asm/txx9tmr.h> 34#include <asm/txx9tmr.h>
@@ -394,6 +395,11 @@ void __init prom_init(void)
394 395
395void __init prom_free_prom_memory(void) 396void __init prom_free_prom_memory(void)
396{ 397{
398 unsigned long saddr = PAGE_SIZE;
399 unsigned long eaddr = __pa_symbol(&_text);
400
401 if (saddr < eaddr)
402 free_init_pages("prom memory", saddr, eaddr);
397} 403}
398 404
399const char *get_system_type(void) 405const char *get_system_type(void)