Thread (1 message) 1 message, 1 author, 2003-03-05

Re: Patch boot/common/relocate.S to start kernel at 0x000c

From: Tom Rini <hidden>
Date: 2003-03-05 17:10:20

On Wed, Mar 05, 2003 at 01:24:32PM +1100, Paul Mackerras wrote:
Wolfgang Denk writes:
quoted
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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help