]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ppc4xx: Sequoia: Fix TLB reassignment in NAND booting code
authorStefan Roese <sr@denx.de>
Thu, 26 Mar 2009 15:14:13 +0000 (16:14 +0100)
committerStefan Roese <sr@denx.de>
Thu, 26 Mar 2009 17:36:40 +0000 (18:36 +0100)
This patch fixes a bug in the Sequoia TLB init code to reconfigure
the correct TLB (boot space) after running from RAM. This bug was
introduced with patch 4d332dbeb08f5863d1ea69d91a00c5499d3a87ed
[ppc4xx: Make Sequoia boot vxWorks] which changed the order of the
TLB in the Sequoia init.S file.

Signed-off-by: Stefan Roese <sr@denx.de>
board/amcc/sequoia/init.S

index bd346bf04b87698b9b408fa15b339a2c9b8ba961..4452d26cd322e04a337a14322ea07f6b567cce93 100644 (file)
@@ -103,7 +103,7 @@ tlbtab:
 reconfig_tlb0:
        sync
        isync
-       addi    r4,r0,0x0000            /* TLB entry #0 */
+       addi    r4,r0,CONFIG_SYS_TLB_FOR_BOOT_FLASH /* TLB entry # */
        lis     r5,TLB00@h
        ori     r5,r5,TLB00@l
        tlbwe   r5,r4,0x0000            /* Save it out */