From: Dave Hansen <haveblue@us.ibm.com>
To: Andi Kleen <ak@suse.de>
Cc: Andrew Morton <akpm@osdl.org>,
yi.zhu@intel.com,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [start_kernel] Suggest to move parse_args() before trap_init()
Date: Mon, 01 Mar 2004 13:15:23 -0800 [thread overview]
Message-ID: <1078175723.27444.214.camel@nighthawk> (raw)
In-Reply-To: <p73vfloz45t.fsf@verdi.suse.de>
On Mon, 2004-03-01 at 12:46, Andi Kleen wrote:
> Andrew Morton <akpm@osdl.org> writes:
>
> > I think the only problem with this is if we get a fault during
> > parse_args(), the kernel flies off into outer space. So you lose some
> > debuggability when using an early console.
> >
> > But 2.4 does trap_init() after parse_args() and nobody has complained, as
> > did 2.6 until recently. So the change is probably OK.
>...
> Another way that i've considered on x86-64 for 2.7 at least is a special
> __early_setup() for this
It might be nice to have the same thing as the initcalls:
#define core_initcall(fn) __define_initcall("1",fn)
...
#define late_initcall(fn) __define_initcall("7",fn)
If we had something like this, we could also use it for stuff like
early_printk(), in addition to things like mem= in setup_arch(). You
can actually do serial early printk in about 3 lines of code if you can
parse arguments really, really early.
-- dave
next prev parent reply other threads:[~2004-03-01 21:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-01 9:36 Zhu, Yi
2004-03-01 10:56 ` Andrew Morton
[not found] ` <20040301025637.338f41cf.akpm@osdl.org.suse.lists.linux.kernel>
2004-03-01 20:46 ` Andi Kleen
2004-03-01 20:54 ` Dave Jones
2004-03-01 21:14 ` Andi Kleen
2004-03-01 21:15 ` Dave Hansen [this message]
2004-03-02 1:49 Mikael Pettersson
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=1078175723.27444.214.camel@nighthawk \
--to=haveblue@us.ibm.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yi.zhu@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®