git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
arch
/
mips
/
mips-boards
/
sim
/
sim_mem.c
diff --git
a/arch/mips/mips-boards/sim/sim_mem.c
b/arch/mips/mips-boards/sim/sim_mem.c
index
0dbd743
..
f7ce769
100644
(file)
--- a/
arch/mips/mips-boards/sim/sim_mem.c
+++ b/
arch/mips/mips-boards/sim/sim_mem.c
@@
-18,9
+18,11
@@
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
+#include <linux/pfn.h>
#include <asm/bootinfo.h>
#include <asm/page.h>
#include <asm/bootinfo.h>
#include <asm/page.h>
+#include <asm/sections.h>
#include <asm/mips-boards/prom.h>
#include <asm/mips-boards/prom.h>
@@
-39,12
+41,6
@@
static char *mtypes[3] = {
};
#endif
};
#endif
-/* References to section boundaries */
-extern char _end;
-
-#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
-
-
struct prom_pmemblock * __init prom_getmdesc(void)
{
unsigned int memsize;
struct prom_pmemblock * __init prom_getmdesc(void)
{
unsigned int memsize;
@@
-117,7
+113,7
@@
unsigned long __init prom_free_prom_memory(void)
while (addr < boot_mem_map.map[i].addr
+ boot_mem_map.map[i].size) {
ClearPageReserved(virt_to_page(__va(addr)));
while (addr < boot_mem_map.map[i].addr
+ boot_mem_map.map[i].size) {
ClearPageReserved(virt_to_page(__va(addr)));
-
set_page_count(virt_to_page(__va(addr)), 1
);
+
init_page_count(virt_to_page(__va(addr))
);
free_page((unsigned long)__va(addr));
addr += PAGE_SIZE;
freed += PAGE_SIZE;
free_page((unsigned long)__va(addr));
addr += PAGE_SIZE;
freed += PAGE_SIZE;