* 40x PPC relocation issue during boot
@ 2004-04-02 12:07 Torben Mathiasen
2004-04-02 12:48 ` Matt Porter
0 siblings, 1 reply; 2+ messages in thread
From: Torben Mathiasen @ 2004-04-02 12:07 UTC (permalink / raw)
To: benh, trini; +Cc: linux-kernel
Looking at the current 2.6 tree, there's an issue when one tries to boot a
zImage image (with or without an attached initrd). This is present in the -benh
tree as well.
In ~/arch/ppc/boot/simple/relocate.S the following snip is present:
..
li r9,0xc
mtlr r9
#ifdef CONFIG_PPC_MULTIPLATFORM
/* tell kernel we're prep, by putting 0xdeadc0de at KERNELLOAD,
* and tell the kernel to start on the 4th instruction since we
* overwrite the first 3 sometimes (which are 'nop').
*/
lis r10,0xdeadc0de@h
ori r10,r10,0xdeadc0de@l
li r9,0
stw r10,0(r9)
#endif
blr
We jump to the 4th instruction, but for the 40x class of cpu's this inst being
taken into account anymore. 3 nop's are missing from head_4xx.S:
.text
_GLOBAL(_stext)
_GLOBAL(_start)
/* Save parameters we are passed.
*/
mr r31,r3
mr r30,r4
...
...
The requirements of the 3 nops is silly anyway, but the relocation code needs
to be fixed. I haven't done the patch as I'm not sure if any other code will
overwrite the first 3 instructions. I hit this bug on an IBM 405EP dev
platform.
Torben
-
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 40x PPC relocation issue during boot
2004-04-02 12:07 40x PPC relocation issue during boot Torben Mathiasen
@ 2004-04-02 12:48 ` Matt Porter
0 siblings, 0 replies; 2+ messages in thread
From: Matt Porter @ 2004-04-02 12:48 UTC (permalink / raw)
To: Torben Mathiasen; +Cc: benh, trini, linux-kernel
On Fri, Apr 02, 2004 at 02:07:12PM +0200, Torben Mathiasen wrote:
> Looking at the current 2.6 tree, there's an issue when one tries to boot a
> zImage image (with or without an attached initrd). This is present in the -benh
> tree as well.
>
> In ~/arch/ppc/boot/simple/relocate.S the following snip is present:
Tom and I discussed this yesterday since it was breaking ppc44x as
well. He already has a relocate.S patch in akpm's queue to fix
the issue.
-Matt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-02 12:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-02 12:07 40x PPC relocation issue during boot Torben Mathiasen
2004-04-02 12:48 ` Matt Porter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox