From: meerkat <yiming@windriver.com>
To: linuxppc-embedded@ozlabs.org
Subject: Re: boottime kernel relocation, what I missed?
Date: Fri, 13 Jul 2007 15:07:41 -0700 (PDT) [thread overview]
Message-ID: <11588451.post@talk.nabble.com> (raw)
In-Reply-To: <11574529.post@talk.nabble.com>
Figure that out, the bootstrap actually mapped the first 16M from C000000 to
the physicall address,
so calling a c routine, as long as it is in the first 16M, is OK
meerkat wrote:
>
> Good day all,
>
> For the first time I begin working on PPC, and on low level, and right
> start from boot sequence, one issue puzzled me.
>
> After bootstrap code (zImage) uncompressed the kernel vmLinux to physical
> memory (say from addr 0),
> it jumps to the kernel entry point, _start, using physically address.
>
> At this time, the MMU is not yet setup to map the kernel virtual address
> (which is statically linked against base address KERNELBASE) to the
> physically address.
>
> $ nm vmlinux |grep early_init
> c038b8e0 T early_init
>
>
> _start calls early_init before mmu is on to map the KERNEL_BASE to
> physically address
>
> The question is how "bl early_init" can branch to the early_init entry
> point, properly, as early_init is still a virtual address?
>
> Thanks
>
> Jim
>
--
View this message in context: http://www.nabble.com/boottime-kernel-relocation%2C-what-I-missed--tf4072673.html#a11588451
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
next prev parent reply other threads:[~2007-07-13 22:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-13 7:17 boottime kernel relocation, what I missed? meerkat
2007-07-13 22:07 ` meerkat [this message]
2007-07-16 19:10 ` Becky Bruce
2007-07-16 19:36 ` meerkat
2007-07-16 20:51 ` Becky Bruce
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=11588451.post@talk.nabble.com \
--to=yiming@windriver.com \
--cc=linuxppc-embedded@ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).