lkml.org 
[lkml]   [2015]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 1/2 v2] x86_64/earlyprintk: setup earlyprintk as early as possible
From
What do you think about following way to solve this:

1. To move this code: -
https://github.com/torvalds/linux/blob/master/arch/x86/kernel/setup.c#L971-L982
to the separate function, something like setup_cmdline().

2. Call setup_cmdline in head{32,64}.c and call
setup_early_printk(boot_command_line)
right after this.

After execution of the setup_cmdline, boot_command_line will be in
actual state. It will contain
command line which we passed to the kernel directly, or overwriten
with CONFIG_CMDLINE_OVERRIDE,
or appended with CONFIG_CMDLINE_OVERRIDE.

What do you think about this?

I already did it and tested on my local machine and it works, but
maybe I have missed something important.


\
 
 \ /
  Last update: 2015-04-07 20:01    [W:0.034 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site