patch-2.4.9 linux/arch/ppc/mm/init.c
Next file: linux/arch/ppc/vmlinux.lds
Previous file: linux/arch/ppc/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Sun Aug 12 12:43:26 2001
- Orig file:
v2.4.8/linux/arch/ppc/mm/init.c
- Orig date:
Tue Jul 3 17:08:18 2001
diff -u --recursive --new-file v2.4.8/linux/arch/ppc/mm/init.c linux/arch/ppc/mm/init.c
@@ -1,5 +1,5 @@
/*
- * BK Id: SCCS/s.init.c 1.27 06/28/01 15:50:17 paulus
+ * BK Id: SCCS/s.init.c 1.30 07/06/01 09:19:29 trini
*/
/*
* PowerPC version
@@ -98,7 +98,6 @@
extern char __prep_begin, __prep_end;
extern char __chrp_begin, __chrp_end;
extern char __pmac_begin, __pmac_end;
-extern char __apus_begin, __apus_end;
extern char __openfirmware_begin, __openfirmware_end;
unsigned long ioremap_base;
unsigned long ioremap_bot;
@@ -719,14 +718,16 @@
unsigned long cnt = 0;
while (start < end) {
- clear_bit(PG_reserved, &virt_to_page(start)->flags);
+ ClearPageReserved(virt_to_page(start));
set_page_count(virt_to_page(start), 1);
free_page(start);
cnt++;
start += PAGE_SIZE;
}
- if (cnt)
+ if (cnt) {
printk(" %ldk %s", PGTOKB(cnt), name);
+ totalram_pages += cnt;
+ }
}
void free_initmem(void)
@@ -744,8 +745,6 @@
FREESEC(chrp);
if (_machine != _MACH_prep)
FREESEC(prep);
- if (_machine != _MACH_apus)
- FREESEC(apus);
if (!have_of)
FREESEC(openfirmware);
printk("\n");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)