hi,<br>-- Another&nbsp;&nbsp;option is to make sure you run your codewithout using any&nbsp;&nbsp;U-Boot&nbsp;&nbsp;services&nbsp;&nbsp;(and&nbsp;&nbsp;interrupts&nbsp;&nbsp;disabled)&nbsp;&nbsp;and disable DC before returning.<br><br>I did so, but still couldn't get D-Cache enabled. <br><br>
<br><div><span class="gmail_quote">On 8/24/06, <b class="gmail_sendername">Wolfgang Denk</b> &lt;<a href="mailto:wd@denx.de">wd@denx.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
In message &lt;<a href="mailto:b4ebaa9d0608240455p26c28d4ey2ebf3768f986c8c2@mail.gmail.com">b4ebaa9d0608240455p26c28d4ey2ebf3768f986c8c2@mail.gmail.com</a>&gt; you wrote:<br>&gt;<br>&gt; I want to apply some simple tests on MPC855T and need to turn on both
<br>&gt; instruction- and data-cache. I have used the codes in cpu/mpc8xx/start.S(as<br><br>Please read the README to understand why this is not so easy.<br><br>&gt; follows), but it crashes while trying to write IDC_ENABLE to DC_CST. Do I
<br>&gt; have to enable the MMU first? If so,<br><br>This is one option, but it may require lots of changes everywhere&nbsp;&nbsp;in<br>the&nbsp;&nbsp;8xx&nbsp;&nbsp;drivers.&nbsp;&nbsp;Another&nbsp;&nbsp;option is to make sure you run your code<br>without using any&nbsp;&nbsp;U-Boot&nbsp;&nbsp;services&nbsp;&nbsp;(and&nbsp;&nbsp;interrupts&nbsp;&nbsp;disabled)&nbsp;&nbsp;and
<br>disable DC before returning.<br><br>&gt; how? I have tried the code in<br>&gt; linuxppc_2_4_devel/arch/ppc/kernel/head_8xx.S, it also crashes while<br>&gt; trying to write MSR_DR|MSR_IR to msr.<br><br>U-Boot is not Linux, so no big surprise...
<br><br>Best regards,<br><br>Wolfgang Denk<br><br>--<br>Software Engineering:&nbsp;&nbsp;Embedded and Realtime Systems,&nbsp;&nbsp;Embedded Linux<br>Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: <a href="mailto:wd@denx.de">wd@denx.de
</a><br>There are certain things men must do to remain men.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- Kirk, &quot;The Ultimate Computer&quot;, stardate 4929.4<br></blockquote></div><br>