comparison packages/kernel/current/tests/kcache1.c @ 34:29bc183297e1 ecos-sw-1999-09-02

Merge from eCos master repository on 1999-09-02-16:26:10-BST
author jlarmour
date Thu, 02 Sep 1999 16:11:22 +0000
parents 306eee292492
children 41bd4f3a90de
comparison
equal deleted inserted replaced
33:7a567ebab069 34:29bc183297e1
295 HAL_DCACHE_ENABLE(); 295 HAL_DCACHE_ENABLE();
296 HAL_RESTORE_INTERRUPTS(oldints); 296 HAL_RESTORE_INTERRUPTS(oldints);
297 CYG_TEST_INFO("Dcache on Icache on (again)"); 297 CYG_TEST_INFO("Dcache on Icache on (again)");
298 time1(); 298 time1();
299 299
300 #if defined(CYGPKG_HAL_MIPS)
301 // In some architectures, the time taken for the next two tests is
302 // very long, partly because HAL_XCACHE_INVALIDATE_ALL() is implemented
303 // with a loop over the cache. Hence these tests take longer than the
304 // testing infrastructure is prepared to wait. The simplest way to get
305 // these tests to run quickly is to make them think they are running
306 // under a simulator.
307
308 cyg_test_is_simulator = 1;
309
310 #endif
311
300 #ifdef HAL_ICACHE_INVALIDATE_ALL 312 #ifdef HAL_ICACHE_INVALIDATE_ALL
301 HAL_DISABLE_INTERRUPTS(oldints); 313 HAL_DISABLE_INTERRUPTS(oldints);
302 HAL_DCACHE_PURGE_ALL(); 314 HAL_DCACHE_PURGE_ALL();
303 HAL_ICACHE_INVALIDATE_ALL(); 315 HAL_ICACHE_INVALIDATE_ALL();
304 HAL_DCACHE_INVALIDATE_ALL(); 316 HAL_DCACHE_INVALIDATE_ALL();