Skip to contentSkip to conversation

linuxppc embedded boot problems.

DISCUSSION Brian Kuschak 1 participant 1 message Dec 16, 1999

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines

This code has statements to invalidate the cache
before jumping to the
kernel. Is this the same as making sure lines are
not "locked" in the
cache ?

No, lines which have been locked into cache can only be removed by sending an "unlock line" or "unlock all" command to the IC_CSR register. "Invalidate all" does not remove "locked" lines.

Quoted 11 lines

I have boot code which does basic initialisation of the 860
(chipselects, DRAM, etc). This code will eventually jump to the start
of the "kernel loader". Do I also have to invalidate the caches just
before jumping to the kernel loader ? This currently isn't done. BTW.
All caches are disabled at this stage so I guess it shouldn't matter.

If caches are disabled, it's a non-issue. We wrote our own boot monitor for a custom 823 board (originally running non-linux code), copying code from a slow flash into fast SDRAM and swapping chip selects. If you are running in a region of memory with I-Cache enabled, and you copy new code into that memory, then invalidating the I-cache is necessary.

Brian

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