[U-Boot-Users] bootm command and flushing cache
warren.l.dodge at exgate.tek.com
warren.l.dodge at exgate.tek.com
Mon Oct 23 22:04:38 CEST 2006
I was tring to get a bootm command to work and had a problem until I
called the fluch_cache routine to force the results of the data move
into ram. This way the execution of the image used the code I had moved
into ram rather then whatever was sitting there.
I see a reference to another user who had this problem but didn't see
any resolution.. It seems like a rather serious thing and should be
fixed.
Email Archive: u-boot-users
<http://sourceforge.net/mailarchive/forum.php?forum_id=12898>
(read-only)
Re: do_bootm() and flush_cache()
From: Scott McNutt <smcnutt at ps...> - 2005-03-23 18:56
>>But after reviewing do_bootm(), I don"t see where the
>>caches are flushed. A call to flush_cache() after
>>moving/decompressing the image seems appropriate, but
>
>
> Why?
After the move/decompression, the data cache must be
flushed to main memory ... otherwise an instruction
cache miss (after jumping into the kernel) may read
in a (potentially) stale line. (Neither cache can be
disabled.)
Regards,
--Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20061023/2fa8aac9/attachment.htm
More information about the U-Boot
mailing list