* About the RFI instruction on Linux Powerpc
@ 2006-10-18 12:49 Wang Matthew-R59995
2006-10-18 13:39 ` Kumar Gala
0 siblings, 1 reply; 2+ messages in thread
From: Wang Matthew-R59995 @ 2006-10-18 12:49 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 781 bytes --]
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?
B.R
Wang Qi.
E-Mail: Qi.W@freescale.com <blocked::mailto:Qi.W@freescale.com>
[-- Attachment #2: Type: text/html, Size: 2594 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: About the RFI instruction on Linux Powerpc
2006-10-18 12:49 About the RFI instruction on Linux Powerpc Wang Matthew-R59995
@ 2006-10-18 13:39 ` Kumar Gala
0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2006-10-18 13:39 UTC (permalink / raw)
To: Wang Matthew-R59995; +Cc: linuxppc-embedded
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-18 13:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-18 12:49 About the RFI instruction on Linux Powerpc Wang Matthew-R59995
2006-10-18 13:39 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox