public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] PPC4xx: Minimal changes to add vxWorks support
@ 2007-11-30 14:01 Niklaus Giger
  2007-11-30 14:11 ` Jerry Van Baren
  0 siblings, 1 reply; 3+ messages in thread
From: Niklaus Giger @ 2007-11-30 14:01 UTC (permalink / raw)
  To: u-boot

Hi

I have to support vxWorks on our boards. In order to avoid changing the TLB
in all PPC440x based boards  I need this small patch. Can it go into the
git repository or do I have to maintain it out of the tree forever?

Best regards

Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
---
 cpu/ppc4xx/start.S |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/cpu/ppc4xx/start.S b/cpu/ppc4xx/start.S
index 9626b65..8f19444 100644
--- a/cpu/ppc4xx/start.S
+++ b/cpu/ppc4xx/start.S
@@ -1432,7 +1432,10 @@ relocate_code:
 	dccci	0,0			/* Invalidate data cache, now no longer our stack */
 	sync
 	isync
-	addi	r1,r0,0x0000		/* TLB entry #0 */
+#ifndef CFG_TLB_FOR_BOOT_FLASH
+#define CFG_TLB_FOR_BOOT_FLASH 0
+#endif
+	addi	r1,r0,CFG_TLB_FOR_BOOT_FLASH	/* TLB entry (default #0) */
 	tlbre	r0,r1,0x0002		/* Read contents */
 	ori	r0,r0,0x0c00		/* Or in the inhibit, write through bit */
 	tlbwe	r0,r1,0x0002		/* Save it out */
-- 
1.5.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-30 19:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-30 14:01 [U-Boot-Users] [PATCH] PPC4xx: Minimal changes to add vxWorks support Niklaus Giger
2007-11-30 14:11 ` Jerry Van Baren
2007-11-30 19:54   ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox