Skip to content

Commit

Permalink
MIPS: TXx9: Implement prom_free_prom_memory
Browse files Browse the repository at this point in the history
Signed-off-by: Atsushi Nemoto <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
atsushi-nemoto authored and ralfbaechle committed Oct 11, 2008
1 parent b27311e commit b6263ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/mips/txx9/generic/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b6263ff

Please sign in to comment.