patch-2.3.99-pre9 linux/arch/mips/arc/memory.c
Next file: linux/arch/mips/arc/misc.c
Previous file: linux/arch/mips/arc/init.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Sat May 13 08:29:14 2000
- Orig file:
v2.3.99-pre8/linux/arch/mips/arc/memory.c
- Orig date:
Thu Mar 2 14:36:22 2000
diff -u --recursive --new-file v2.3.99-pre8/linux/arch/mips/arc/memory.c linux/arch/mips/arc/memory.c
@@ -21,8 +21,6 @@
#undef DEBUG
-extern char _end;
-
struct linux_mdesc * __init
ArcGetMemoryDescriptor(struct linux_mdesc *Current)
{
@@ -146,7 +144,7 @@
void __init prom_meminit(void)
{
struct prom_pmemblock *largest;
- unsigned long bootmap_size;
+ unsigned long bootmap_size, kbegin, kend;
struct linux_mdesc *p;
int totram;
int i = 0;
@@ -195,6 +193,7 @@
pblocks[i].size = 0;
max_low_pfn = find_max_low_pfn();
+
largest = find_largest_memblock();
bootmap_size = init_bootmem(largest->base >> PAGE_SHIFT, max_low_pfn);
@@ -208,6 +207,8 @@
prom_printf("CRITIAL: overwriting PROM data.\n");
BUG();
}
+
+ /* Reserve the memory bootmap itself */
reserve_bootmem(largest->base, bootmap_size);
printk("PROMLIB: Total free ram %dK / %dMB.\n",
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)