30 Jan, 2013

2 commits

  • boot/compressed/misc.c is used for bzImage in 64bit and 32bit, and
    cmd_line_ptr could point to buffer that is above 4g, cmd_line_ptr
    should be 64bit otherwise high 32bit will be capped out.

    So need to change data type to unsigned long, that will be 64bit get
    correct address of command line buffer.

    And it is still ok with 32bit bzImage, because unsigned long on 32bit kernel
    is still 32bit.

    Signed-off-by: Yinghai Lu
    Link: http://lkml.kernel.org/r/1359058816-7615-19-git-send-email-yinghai@kernel.org
    Signed-off-by: H. Peter Anvin

    Yinghai Lu
     
  • cmdline.c::__cmdline_find_option... are shared between 16-bit setup code
    and 32/64 bit decompressor code.

    for 32/64 only path via kexec, we should not check if ptr is less 1M.
    as those cmdline could be put above 1M, or even 4G.

    Move out accessible checking out of __cmdline_find_option()
    So decompressor in misc.c can parse cmdline correctly.

    Signed-off-by: Yinghai Lu
    Link: http://lkml.kernel.org/r/1359058816-7615-18-git-send-email-yinghai@kernel.org
    Signed-off-by: H. Peter Anvin

    Yinghai Lu
     

03 Aug, 2010

1 commit

  • Separate early_serial_console from tty.c

    This allows for reuse of
    early_serial_console.c/string.c/printf.c/cmdline.c in boot/compressed/.

    -v2: according to hpa, don't include string.c etc
    -v3: compressed/misc.c must have early_serial_base as static, so move it back to tty.c
    for setup code

    Signed-off-by: Yinghai Lu
    LKML-Reference:
    Signed-off-by: H. Peter Anvin

    Yinghai Lu
     

20 Apr, 2008

1 commit


30 Jan, 2008

2 commits

  • Add prototype for cmdline_find_option_bool() missing from:

    x86 setup: early cmdline parser handle boolean options

    Also, fix up a minor formatting error in that patch.

    Signed-off-by: H. Peter Anvin
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    H. Peter Anvin
     
  • This patch extends the early commandline parser to support boolean options.
    The current version in mainline only supports parsing "option=arg" value pairs.

    With this it should be easy making other messages like "Uncompressing kernel"
    honour the "quiet" parameter, too.

    Signed-off-by: Roland Kletzing
    Signed-off-by: H. Peter Anvin
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    devzero@web.de
     

11 Oct, 2007

1 commit

  • Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar

    Thomas Gleixner