linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Patch boot/common/relocate.S to start kernel at 0x000c
@ 2003-03-04 19:16 Dale Farnsworth
  2003-03-04 19:24 ` Dan Malek
  0 siblings, 1 reply; 22+ messages in thread
From: Dale Farnsworth @ 2003-03-04 19:16 UTC (permalink / raw)
  To: linuxppc-dev


arch/ppc/boot/common/relocate.S starts the kernel at address 0
which fails if you have a second cpu running at secondary_hold.
(The code at secondary hold writes the cpu id at address 4.)

This patch starts the kernel at address 0xc instead.

Thanks,
-Dale

===== arch/ppc/boot/common/relocate.S 1.6 vs edited =====
--- 1.6/arch/ppc/boot/common/relocate.S	Thu Feb 27 12:40:14 2003
+++ edited/arch/ppc/boot/common/relocate.S	Tue Mar  4 10:09:52 2003
@@ -200,8 +200,10 @@

 	/*
 	 * Start at the begining.
+	 * Well, actually on the 4th instruction since we
+	 * overwrite the first 3 sometimes (which are 'nop').
 	 */
-	li	r9,0x0000
+	li	r9,0x000c
 	mtlr	r9
 	blr


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2003-03-14 17:52 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-04 19:16 Patch boot/common/relocate.S to start kernel at 0x000c Dale Farnsworth
2003-03-04 19:24 ` Dan Malek
2003-03-04 20:13   ` Dale Farnsworth
2003-03-04 20:21     ` Dan Malek
2003-03-04 23:08       ` Dale Farnsworth
2003-03-04 23:21         ` Dan Malek
2003-03-04 23:35           ` Dale Farnsworth
2003-03-04 23:42           ` Tom Rini
2003-03-05  0:07             ` Dale Farnsworth
2003-03-05  0:47               ` Paul Mackerras
2003-03-05  1:01                 ` Wolfgang Denk
2003-03-05  1:03                 ` Wolfgang Denk
     [not found]                   ` <20030305022134.GR24171@kalmia.hozed.org>
2003-03-05  4:40                     ` Dale Farnsworth
2003-03-05 17:07                     ` Tom Rini
2003-03-05 17:24                   ` Dan Malek
     [not found]                   ` <15973.24544.124365.553602@argo.ozlabs.ibm.com>
2003-03-05  4:28                     ` Dale Farnsworth
2003-03-05  9:54                       ` Benjamin Herrenschmidt
2003-03-05 17:10                     ` Tom Rini
2003-03-11 18:45                     ` Dale Farnsworth
2003-03-13 22:38       ` Dale Farnsworth
2003-03-14 11:43         ` Gabriel Paubert
2003-03-14 17:52           ` Dale Farnsworth

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).