linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][PPC32] Fix mv64x60 register relocation bug in bootwrapper
@ 2005-02-08 20:59 Mark A. Greer
  0 siblings, 0 replies; only message in thread
From: Mark A. Greer @ 2005-02-08 20:59 UTC (permalink / raw)
  To: akpm; +Cc: Nathaniel Case, Embedded PPC Linux list

[-- Attachment #1: Type: text/plain, Size: 308 bytes --]

The gt64260 looks at the highest 20 bits while the mv64[34]60 looks at 
only the highest 16 bits when determining the base address for the 
bridge's registers.  This patch adds support for both.

Please apply.

Signed-off-by: Nate Case <ncase@xes-inc.com>
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
--

[-- Attachment #2: misc-mv64x60.patch --]
[-- Type: text/plain, Size: 499 bytes --]

diff -Nru a/arch/ppc/boot/simple/misc-mv64x60.S b/arch/ppc/boot/simple/misc-mv64x60.S
--- a/arch/ppc/boot/simple/misc-mv64x60.S	2005-02-08 13:55:06 -07:00
+++ b/arch/ppc/boot/simple/misc-mv64x60.S	2005-02-08 13:55:06 -07:00
@@ -32,7 +32,11 @@
 #if (CONFIG_MV64X60_NEW_BASE != CONFIG_MV64X60_BASE)
 move_base:
 	li	r20,0
+#ifdef CONFIG_GT64260
 	li	r23,20
+#else /* Must be mv64[34]60 which uses top 16 bits */
+	li	r23,16
+#endif
 
 	/* Relocate bridge's regs */
 	addis	r25,0,CONFIG_MV64X60_BASE@h

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-08 20:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-08 20:59 [PATCH][PPC32] Fix mv64x60 register relocation bug in bootwrapper Mark A. Greer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).