From: "H. Peter Anvin" <hpa@zytor.com>
To: Mike Travis <travis@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>,
Andrew Morton <akpm@linux-foundation.org>,
Thomas Gleixner <tglx@linutronix.de>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] x86: Add config option to setup early serial console
Date: Thu, 12 Jun 2008 15:59:24 -0700 [thread overview]
Message-ID: <4851AA4C.4070001@zytor.com> (raw)
In-Reply-To: <4851A935.3010705@sgi.com>
Mike Travis wrote:
>
> We could. My current debugging is in x86_64_start_kernel() almost at
> the start of the function (before the "Kernel alive" message). The
> code is below. (cut and pasted so no tabs)
>
> One benefit of a startup option instead of a config option is we rely
> on the standard distribution for the kernel and unless they set this
> option it won't do us much good.
>
> (Maybe the failed attempts was trying to tell me something? ;-)
>
The easiest way to get to something extremely early is to parse it out
already in the setup code and pass in a flag in struct boot_params.
Otherwise, the kernel command line is present in memory and can be
copied or parsed in an ad hoc manner. For i386 it is copied in place
already in the assembly code -- for x86-64 it looks like we could
trivially move copy_bootdata until just past clear_bss().
-hpa
next prev parent reply other threads:[~2008-06-12 23:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080612223802.528617000@polaris-admin.engr.sgi.com>
2008-06-12 22:38 ` [PATCH 1/1] x86: Add config option to setup early serial console Mike Travis
2008-06-12 22:42 ` H. Peter Anvin
2008-06-12 22:54 ` Mike Travis
2008-06-12 22:59 ` H. Peter Anvin [this message]
2008-06-12 22:42 ` Mike Travis
2008-06-12 22:46 ` Andrew Morton
2008-06-12 22:58 ` Mike Travis
2008-06-12 23:10 ` Andrew Morton
2008-06-12 23:18 ` Yinghai Lu
2008-06-12 23:19 ` Yinghai Lu
[not found] <20080612224247.486614000@polaris-admin.engr.sgi.com>
2008-06-12 22:42 ` Mike Travis
2008-06-12 22:48 ` Yinghai Lu
2008-06-12 23:01 ` Mike Travis
2008-06-18 12:13 ` Ingo Molnar
[not found] <20080612223343.257409000@polaris-admin.engr.sgi.com>
2008-06-12 22:33 ` Mike Travis
2008-06-12 22:37 ` Mike Travis
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=4851AA4C.4070001@zytor.com \
--to=hpa@zytor.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=travis@sgi.com \
/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.