patch-1.3.73 linux/arch/i386/mm/init.c
Next file: linux/arch/mips/kernel/signal.c
Previous file: linux/arch/i386/kernel/vm86.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Sat Mar 9 13:31:43 1996
- Orig file:
v1.3.72/linux/arch/i386/mm/init.c
- Orig date:
Sun Jan 14 16:30:10 1996
diff -u --recursive --new-file v1.3.72/linux/arch/i386/mm/init.c linux/arch/i386/mm/init.c
@@ -17,6 +17,9 @@
#include <linux/mm.h>
#include <linux/swap.h>
#include <linux/smp.h>
+#ifdef CONFIG_BLK_DEV_INITRD
+#include <linux/blk.h>
+#endif
#include <asm/system.h>
#include <asm/segment.h>
@@ -243,7 +246,11 @@
continue;
}
mem_map[MAP_NR(tmp)].count = 1;
- free_page(tmp);
+#ifdef CONFIG_BLK_DEV_INITRD
+ if (!initrd_start || (tmp < initrd_start || tmp >=
+ initrd_end))
+#endif
+ free_page(tmp);
}
tmp = nr_free_pages << PAGE_SHIFT;
printk("Memory: %luk/%luk available (%dk kernel code, %dk reserved, %dk data)\n",
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this