From: Niklaus Giger Date: Fri, 30 Nov 2007 17:35:11 +0000 (+0100) Subject: PPC4xx: Minimal changes to add vxWorks support X-Git-Tag: v1.3.2-rc1~102^2~57^2~32 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=85dc2a7f82d11e17f0ca2a448118aed7f7a4b85d;p=u-boot PPC4xx: Minimal changes to add vxWorks support Signed-off-by: Niklaus Giger --- diff --git a/cpu/ppc4xx/start.S b/cpu/ppc4xx/start.S index f5a135f1a0..645ac0b8dd 100644 --- a/cpu/ppc4xx/start.S +++ b/cpu/ppc4xx/start.S @@ -1356,7 +1356,11 @@ relocate_code: dccci 0,0 /* Invalidate data cache, now no longer our stack */ sync isync - addi r1,r0,0x0000 /* TLB entry #0 */ +#ifdef CFG_TLB_FOR_BOOT_FLASH + addi r1,r0,CFG_TLB_FOR_BOOT_FLASH /* Use defined TLB */ +#else + addi r1,r0,0x0000 /* Default TLB entry is #0 */ +#endif tlbre r0,r1,0x0002 /* Read contents */ ori r0,r0,0x0c00 /* Or in the inhibit, write through bit */ tlbwe r0,r1,0x0002 /* Save it out */