[U-Boot-Users] mips cache and relocate_code()

Burch, John T. John.Burch at tellabs.com
Thu Apr 13 18:27:28 CEST 2006

Code is relocated from flash to RAM in cpu/mips/start.S/relocate_code().
After the code is moved a comment in the code says, "If caches were
we would have to flush them here."  Based on code in the same file,
the caches are enabled - and I agree that the data cache needs to be
(and instruction cached invalidated to be safe) but it isn't.
Is there a reason it's not?
Also, flush_cache() is not implemented in cpu/mips/cpu.c.  This function
to be required by cmd_net.c/netboot_common().  Is there a reason
is not implemented?

I ask because I'm seeing unexplained code behavior that goes away if I
enable the caches.

The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs

More information about the U-Boot mailing list