Index: packages/hal/powerpc/mpc8260/current/ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/hal/powerpc/mpc8260/current/ChangeLog,v retrieving revision 1.4 diff -u -5 -p -r1.4 ChangeLog --- packages/hal/powerpc/mpc8260/current/ChangeLog 4 Mar 2003 23:25:10 -0000 1.4 +++ packages/hal/powerpc/mpc8260/current/ChangeLog 24 Mar 2003 19:52:23 -0000 @@ -1,5 +1,11 @@ +2003-03-24 Patrick Doyle + + * include/var_cache.h (HAL_DCACHE_SYNC): Step through twice the + cache size to ensure that any entries in the first 16Kbytes of + memory are properly flushed. + 2003-03-04 Paul Fine * include/var_cache.h: Modify the HAL_DCACHE_SYNC macro to look like the MACRO defined in the PPC60x HAL. Index: packages/hal/powerpc/mpc8260/current/include/var_cache.h =================================================================== RCS file: /cvs/ecos/ecos/packages/hal/powerpc/mpc8260/current/include/var_cache.h,v retrieving revision 1.4 diff -u -5 -p -r1.4 var_cache.h --- packages/hal/powerpc/mpc8260/current/include/var_cache.h 4 Mar 2003 23:25:10 -0000 1.4 +++ packages/hal/powerpc/mpc8260/current/include/var_cache.h 24 Mar 2003 19:52:24 -0000 @@ -140,11 +140,11 @@ // Use the macro defined in the PPC60x HAL as of January 2003. #define HAL_DCACHE_SYNC() \ CYG_MACRO_START \ cyg_int32 i; \ cyg_uint32 *__base = (cyg_uint32 *) (0); \ - for(i=0;i< (HAL_DCACHE_SIZE/HAL_DCACHE_LINE_SIZE);i++,__base += HAL_DCACHE_LINE_SIZE/4){ \ + for(i=0;i< (2*HAL_DCACHE_SIZE/HAL_DCACHE_LINE_SIZE);i++,__base += HAL_DCACHE_LINE_SIZE/4){ \ asm volatile ("lwz %%r0,0(%0);"::"r"(__base):"r0"); \ } \ CYG_MACRO_END // Query the state of the data cache