<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=422363119-23102006><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=422363119-23102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422363119-23102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422363119-23102006><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=422363119-23102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422363119-23102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422363119-23102006>
<H3>Email Archive: <A
href="http://sourceforge.net/mailarchive/forum.php?forum_id=12898">u-boot-users</A>
(read-only) </H3>
<P></P>
<TABLE width="100%">
<TBODY>
<TR>
<TD noWrap bgColor=#dddddd>
<DIV class=forum>
<DIV><B>Re: do_bootm() and flush_cache()</B></DIV><SMALL>From: Scott
McNutt <smcnutt@ps...> - 2005-03-23 18:56</SMALL> </DIV></TD></TR>
<TR>
<TD><PRE> >>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
</PRE></TD></TR></TBODY></TABLE></SPAN></DIV></BODY></HTML>