lkml.org 
[lkml]   [2007]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 7/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>
    ---

    efi.c | 3 +++
    1 files changed, 3 insertions(+)

    diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.20-rc4-mm1-006_x8664_set_kernelcore/arch/ia64/kernel/efi.c linux-2.6.20-rc4-mm1-007_ia64_set_kernelcore/arch/ia64/kernel/efi.c
    --- linux-2.6.20-rc4-mm1-006_x8664_set_kernelcore/arch/ia64/kernel/efi.c 2007-01-07 05:45:51.000000000 +0000
    +++ linux-2.6.20-rc4-mm1-007_ia64_set_kernelcore/arch/ia64/kernel/efi.c 2007-01-25 17:42:15.000000000 +0000
    @@ -27,6 +27,7 @@
    #include <linux/time.h>
    #include <linux/efi.h>
    #include <linux/kexec.h>
    +#include <linux/mm.h>

    #include <asm/io.h>
    #include <asm/kregs.h>
    @@ -422,6 +423,8 @@ 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) {
    + cmdline_parse_kernelcore(cp+11);
    } else if (memcmp(cp, "min_addr=", 9) == 0) {
    min_addr = GRANULEROUNDDOWN(memparse(cp + 9, &cp));
    } else {
    -
    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: 2007-01-26 01:25    [W:5.939 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site