This patch adds the kernelcore= parameter for ppc64.
Signed-off-by: Mel Gorman <[email protected]>
diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/powerpc/kernel/prom.c linux-2.6.17-rc3-mm1-zonesizing-104_ppc64coremem/arch/powerpc/kernel/prom.c
--- linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/powerpc/kernel/prom.c 2006-05-03 09:41:31.000000000 +0100
+++ linux-2.6.17-rc3-mm1-zonesizing-104_ppc64coremem/arch/powerpc/kernel/prom.c 2006-05-03 09:48:06.000000000 +0100
@@ -1064,6 +1064,15 @@ static int __init early_init_dt_scan_cho
}
}
+ /* Check if ZONE_EASYRCLM should be populated */
+ if (strstr(cmd_line, "kernelcore=")) {
+ unsigned long core_pages;
+ char *opt = strstr(cmd_line, "kernelcore=");
+ opt += 11;
+ core_pages = memparse(opt, &opt) >> PAGE_SHIFT;
+ set_required_kernelcore(core_pages);
+ }
+
/* break now */
return 1;
}
diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/ppc/mm/init.c linux-2.6.17-rc3-mm1-zonesizing-104_ppc64coremem/arch/ppc/mm/init.c
--- linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/ppc/mm/init.c 2006-05-03 09:42:16.000000000 +0100
+++ linux-2.6.17-rc3-mm1-zonesizing-104_ppc64coremem/arch/ppc/mm/init.c 2006-05-03 09:48:06.000000000 +0100
@@ -213,6 +213,15 @@ void MMU_setup(void)
}
__max_memory = maxmem;
}
+
+ /* Check if ZONE_EASYRCLM should be populated */
+ if (strstr(cmd_line, "kernelcore=")) {
+ unsigned long core_pages;
+ char *opt = strstr(cmd_line, "kernelcore=");
+ opt += 11;
+ core_pages = memparse(opt, &opt) >> PAGE_SHIFT;
+ set_required_kernelcore(core_pages);
+ }
}
/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]