From: Kumar Gala <galak@kernel.crashing.org>
To: Wang Matthew-R59995 <Qi.W@freescale.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: About the RFI instruction on Linux Powerpc
Date: Wed, 18 Oct 2006 08:39:23 -0500 [thread overview]
Message-ID: <0EE06CE5-98CB-49BB-A398-DF0E3277125D@kernel.crashing.org> (raw)
In-Reply-To: <54A124D27BDE0F449E2032F42ED617583197A6@zch01exm21.fsl.freescale.net>
On Oct 18, 2006, at 7:49 AM, Wang Matthew-R59995 wrote:
> Hi folks,
>
> Currently I meet an issue about rfi instruction. Please see the
> following source code. This source code is contained at the
> head_fsl_booke.h of ./arch/powerpc/kernel directory.
>
> xori r6,r4,1
> slwi r6,r6,5 /* setup new context with other address space */
> bl 1f /* Find our address */
> 1: mflr r9
> rlwimi r7,r9,0,20,31
> addi r7,r7,24
> mtspr SPRN_SRR0,r7
> mtspr SPRN_SRR1,r6
> rfi
> I found that rfi instruction can't jump to the address of SRR0. I
> take the MPC8555CDS board to do those test. And I don't take U-Boot
> as bootloader, while the Vxwerks Bootrom.
>
> I just want to try if Bootrom can bring up the Linux Powerpc kernel.
>
> Any suggestion for that?
What does happen after the rfi instruction? Do you have a JTAG
debugger or something you can use to single step through this code?
Do you know the value of r9?
There are some expectations as to what's setup by the bootloader when
you jump into the kernel. They are pretty minimal but I dont know if
the VxWorks Bootrom does the same thing as u-boot.
- kumar
prev parent reply other threads:[~2006-10-18 13:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-18 12:49 About the RFI instruction on Linux Powerpc Wang Matthew-R59995
2006-10-18 13:39 ` Kumar Gala [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=0EE06CE5-98CB-49BB-A398-DF0E3277125D@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=Qi.W@freescale.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