Patch boot/common/relocate.S to start kernel at 0x000c
Tom Rini
trini at kernel.crashing.org
Thu Mar 6 04:10:20 EST 2003
On Wed, Mar 05, 2003 at 01:24:32PM +1100, Paul Mackerras wrote:
> Wolfgang Denk writes:
>
> > BTW: _all_ this writing to kernel text is a Bad Thing (TM), as it
> > makes XIP (for example running from ROM) really difficult.
>
> Well, there is no reason why the secondary hold code shouldn't just
> reference an ordinary variable in the kernel data section. It would
> take a couple more instructions, but that shouldn't be a problem. The
> starting address for the secondary hold code needs to be well-known
> (at least to the prep boot wrapper) but the variable that it spins on
> doesn't.
Keep in mind that this issue has come up because there will be more
non-CONFIG_ALL_PPC SMP systems being supported.
Dale, how hard would it be to change the code you have (and the PReP
code as well which maybe we can get Troy to test :)) to do what Paul
suggested above and use an ordinary variable in the kernel data section?
--
Tom Rini
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list