lkml.org 
[lkml]   [2006]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 6/8] ia64 - Specify amount of kernel memory at boot time
Date

This patch adds the kernelcore= parameter for ia64.

Signed-off-by: Mel Gorman <mel@csn.ul.ie>
diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.17-rc3-mm1-zonesizing-105_x8664coremem/arch/ia64/kernel/efi.c linux-2.6.17-rc3-mm1-zonesizing-106_ia64coremem/arch/ia64/kernel/efi.c
--- linux-2.6.17-rc3-mm1-zonesizing-105_x8664coremem/arch/ia64/kernel/efi.c 2006-05-03 09:41:30.000000000 +0100
+++ linux-2.6.17-rc3-mm1-zonesizing-106_ia64coremem/arch/ia64/kernel/efi.c 2006-05-04 13:53:14.000000000 +0100
@@ -25,6 +25,7 @@
#include <linux/types.h>
#include <linux/time.h>
#include <linux/efi.h>
+#include <linux/mm.h>

#include <asm/io.h>
#include <asm/kregs.h>
@@ -420,6 +421,10 @@ efi_init (void)
mem_limit = memparse(cp + 4, &cp);
} else if (memcmp(cp, "max_addr=", 9) == 0) {
max_addr = GRANULEROUNDDOWN(memparse(cp + 9, &cp));
+ } else if (memcmp(cp, "kernelcore=",11) == 0) {
+ unsigned long core_pages;
+ core_pages = memparse(cp+11, &cp) >> PAGE_SHIFT;
+ set_required_kernelcore(core_pages);
} else {
while (*cp != ' ' && *cp)
++cp;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-05-05 19:40    [W:0.033 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site