From: Ingo Molnar <mingo@elte.hu>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, Andi Kleen <ak@suse.de>
Subject: Re: [patch] x86_64: fix earlyprintk=...,keep regression
Date: Tue, 28 Nov 2006 20:56:53 +0100 [thread overview]
Message-ID: <20061128195653.GA24577@elte.hu> (raw)
In-Reply-To: <Pine.LNX.4.64.0611281048170.4244@woody.osdl.org>
* Linus Torvalds <torvalds@osdl.org> wrote:
> - if (!strcmp(buf,"keep"))
> + if (!strncmp(buf,"keep", 4)) {
> keep_early = 1;
> -
> - if (!strncmp(buf, "serial", 6)) {
> + } else if (!strncmp(buf, "serial", 6)) {
> early_serial_init(buf + 6);
> early_console = &early_serial_console;
nope, that doesnt work, because the function call is a one-time thing
via the early_console_initialized flag. Nor does this keep compatibility
with the 2.6.18 API, my existing boot-entries:
root (hd0,4)
kernel /boot/bzImage-x64 root=/dev/hda5 \
earlyprintk=serial,ttyS0,115200,keep console=ttyS0,115200 console=tty
stopped working.
I agree that the parameter parsing here is a bit hacky, but my patch
restores the original behavior, so i think that's the best option for
now.
Ingo
prev parent reply other threads:[~2006-11-28 19:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 8:14 [patch] x86_64: fix earlyprintk=...,keep regression Ingo Molnar
2006-11-28 18:52 ` Linus Torvalds
2006-11-28 18:56 ` Linus Torvalds
2006-11-28 18:57 ` Andi Kleen
2006-11-28 19:56 ` Ingo Molnar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061128195653.GA24577@elte.hu \
--to=mingo@elte.hu \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.