comparison packages/hal/common/current/tests/cache.c @ 161:ac086aa3217e

Merge from eCos master repository on 2001-06-08-21:11:51-BST
author jlarmour
date Sun, 10 Jun 2001 19:35:23 +0000
parents bf00f99aec69
children e0c0827131d1
comparison
equal deleted inserted replaced
160:0d0f03f76f6a 161:ac086aa3217e
21 // The Original Code is eCos - Embedded Configurable Operating System, 21 // The Original Code is eCos - Embedded Configurable Operating System,
22 // released September 30, 1998. 22 // released September 30, 1998.
23 // 23 //
24 // The Initial Developer of the Original Code is Red Hat. 24 // The Initial Developer of the Original Code is Red Hat.
25 // Portions created by Red Hat are 25 // Portions created by Red Hat are
26 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc. 26 // Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.
27 // All Rights Reserved. 27 // All Rights Reserved.
28 // ------------------------------------------- 28 // -------------------------------------------
29 // 29 //
30 //####COPYRIGHTEND#### 30 //####COPYRIGHTEND####
31 //========================================================================== 31 //==========================================================================
43 43
44 #include <cyg/hal/hal_cache.h> 44 #include <cyg/hal/hal_cache.h>
45 #include <cyg/hal/hal_intr.h> 45 #include <cyg/hal/hal_intr.h>
46 #include <cyg/infra/diag.h> 46 #include <cyg/infra/diag.h>
47 47
48 #if (HAL_DCACHE_SIZE > 0) 48 #ifdef HAL_DCACHE_SIZE
49 49
50 // ------------------------------------------------------------------------- 50 // -------------------------------------------------------------------------
51 // If the HAL does not supply this, we supply our own version 51 // If the HAL does not supply this, we supply our own version
52 52
53 #ifdef HAL_DCACHE_SYNC 53 #ifdef HAL_DCACHE_SYNC
209 cyg_start( void ) 209 cyg_start( void )
210 { 210 {
211 cache_main(); 211 cache_main();
212 } 212 }
213 213
214 #else // (HAL_DCACHE_SIZE > 0) 214 #else // HAL_DCACHE_SIZE
215 #define N_A_MSG "No cache" 215 #define N_A_MSG "No cache"
216 #endif // (HAL_DCACHE_SIZE > 0) 216 #endif // HAL_DCACHE_SIZE
217 217
218 #ifdef N_A_MSG 218 #ifdef N_A_MSG
219 externC void 219 externC void
220 cyg_start( void ) 220 cyg_start( void )
221 { 221 {