comparison packages/kernel/current/tests/kcache1.c @ 76:435cced73e2f ecos-v1_3_1-release

eCos v1.3.1 merged from eCos master repository on 2000-03-27-23:22:51-BST
author jlarmour
date Tue, 28 Mar 2000 14:10:45 +0000
parents bf00f99aec69
children 59d97b6ba612
comparison
equal deleted inserted replaced
75:41bf073c0c32 76:435cced73e2f
304 // very long, partly because HAL_XCACHE_INVALIDATE_ALL() is implemented 304 // very long, partly because HAL_XCACHE_INVALIDATE_ALL() is implemented
305 // with a loop over the cache. Hence these tests take longer than the 305 // with a loop over the cache. Hence these tests take longer than the
306 // testing infrastructure is prepared to wait. The simplest way to get 306 // testing infrastructure is prepared to wait. The simplest way to get
307 // these tests to run quickly is to make them think they are running 307 // these tests to run quickly is to make them think they are running
308 // under a simulator. 308 // under a simulator.
309 309 // If the target actually is a simulator, skip the below - it's very
310 // slow on the simulator, even with reduced loop counts.
311 if (cyg_test_is_simulator)
312 CYG_TEST_PASS_FINISH("End of test");
313
310 cyg_test_is_simulator = 1; 314 cyg_test_is_simulator = 1;
311
312 #endif 315 #endif
313 316
314 #ifdef HAL_ICACHE_INVALIDATE_ALL 317 #ifdef HAL_ICACHE_INVALIDATE_ALL
315 HAL_DISABLE_INTERRUPTS(oldints); 318 HAL_DISABLE_INTERRUPTS(oldints);
316 HAL_DCACHE_PURGE_ALL(); 319 HAL_DCACHE_PURGE_ALL();