Patrick Huesmann wrote: > Then there is a possibility of cache problems. Someone on this list > suggested that I better flush the caches before booting, using a code > snippet like this: > > for(i=0; i<16384; i+=32) { > asm("dccci 0,%0" :: "r"(i)); > } > asm("iccci 0,0"); > asm("sync;isync"); You should probably invalidate the cache before you flush it. There is code to do this for the ML300. Search for "mfdccr" in:
http://ppc.bkbits.net:8080/linuxppc-2.4/anno/arch/ppc/boot/simple/embed_config.c at 1.24?nav=index.html|src/|src/arch|src/arch/ppc|src/arch/ppc/boot|src/arch/ppc/boot/simple ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/