aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklaus Giger <niklausgiger@gmx.ch>2007-11-30 18:35:11 +0100
committerStefan Roese <sr@denx.de>2007-12-27 19:35:34 +0100
commit85dc2a7f82d11e17f0ca2a448118aed7f7a4b85d (patch)
treeb3d4be7cd57b5fb9e4a97d46abe06dedaf025460
parent052440b022ca8981d39b6f8c10d1aa6326f47480 (diff)
downloadu-boot-85dc2a7f82d11e17f0ca2a448118aed7f7a4b85d.zip
u-boot-85dc2a7f82d11e17f0ca2a448118aed7f7a4b85d.tar.gz
u-boot-85dc2a7f82d11e17f0ca2a448118aed7f7a4b85d.tar.bz2
PPC4xx: Minimal changes to add vxWorks support
Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
-rw-r--r--cpu/ppc4xx/start.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpu/ppc4xx/start.S b/cpu/ppc4xx/start.S
index f5a135f..645ac0b 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 */