[U-Boot-Users] does the mips_cache_lock in cpu/mips/start.S is necessary?

Andrew Dyer amdyer at gmail.com
Tue Nov 8 16:04:22 CET 2005


On 11/7/05, zhuzhenhua <zzh.hust at gmail.com> wrote:
> does the mips_cache_lock in cpu/mips/start.S is necessary? i got some
> problem to run it, if it 's not necessary, i want to remove it

You don't mention what model of MIPS you are running.  I know several
older parts that don't support cache line locking, so I'm not surprised that
you would have trouble with that bit.

The code is locking those lines in cache to make some RAM available so that
it can start to run C code (board_init_f).  This allows doing a lot more of the
board initialization in C rather than assembly.  If you can get some
ram available
at this point for the stack and GOT you should be able to remove the call.




More information about the U-Boot mailing list