From: Ralf Baechle <ralf@linux-mips.org>
To: Ashlesha Shintre <ashlesha@kenati.com>
Cc: linux-mips@linux-mips.org
Subject: Re: early_initcall
Date: Thu, 7 Sep 2006 05:30:50 +0200 [thread overview]
Message-ID: <20060907033050.GA17965@linux-mips.org> (raw)
In-Reply-To: <1157566247.6485.12.camel@sandbar.kenati.com>
On Wed, Sep 06, 2006 at 11:10:47AM -0700, Ashlesha Shintre wrote:
> I googled early_initcall and found a patch which basically adds this
> line to the /include/init.h file:
>
> #define early_initcall(fn) __define_initcall(".early1",fn)
There is more infrastructure needed to get this to work. And in fact why
are you trying to get it to work at all - a direct call from setup_arch
to your early init function is trivial to do.
> I built a kernel image with this new line included and now if I try
> executing it, the bootloader YAMON gives an exception error before it
> can even begin! Here is the dump:
Such a dump could be from YAMON or in the very early phase of the kernel
initialization.
> A machine check means that an exception is generated due to duplicate
> TLB entries. I dont understand why the kernel crashes so early.
There are also other implementation specified reasons that may result
in a machine check exception as well.
> Also, what does the ".early1" mean? Is that a definition of a different
> segment in the init.h file?
Section not segment. It's just a section name.
> I checked output of the "readelf -a vmlinux" and found that the address
> for the early_initcall comes up about 5 times. I m not sure what each
> of the fields mean, so I have attached the above part of the readelf in
> a file called readelf.
And if you had not quoted 50 lines of the previous message in this thread
but those lines from the readelf output we might actually tell you.
Ralf
next prev parent reply other threads:[~2006-09-07 3:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-02 0:50 early_initcall Kaz Kylheku
2006-09-02 0:50 ` early_initcall Kaz Kylheku
2006-09-06 18:10 ` early_initcall Ashlesha Shintre
2006-09-07 3:30 ` Ralf Baechle [this message]
2006-09-14 22:05 ` early_initcall Ashlesha Shintre
-- strict thread matches above, loose matches on Subject: below --
2006-09-01 23:38 early_initcall Ashlesha Shintre
2004-12-08 14:06 early_initcall Yoichi Yuasa
2004-04-24 7:59 early_initcall Stanislaw Skowronek
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=20060907033050.GA17965@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=ashlesha@kenati.com \
--cc=linux-mips@linux-mips.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.