comparison packages/hal/synth/arch/current/include/hal_cache.h @ 202:353a011b23b8

Merge from eCos master repository on 2002-01-11-06:43:03-GMT
author jlarmour
date Fri, 11 Jan 2002 16:53:46 +0000
parents ac086aa3217e
children e0c0827131d1
comparison
equal deleted inserted replaced
201:dd81b18e45fb 202:353a011b23b8
52 // The synthetic target does not have a cache. The underlying hardware 52 // The synthetic target does not have a cache. The underlying hardware
53 // is quite likely to have a cache, but the synthetic target code has 53 // is quite likely to have a cache, but the synthetic target code has
54 // no way of manipulating it. A minimal set of no-op #define's is 54 // no way of manipulating it. A minimal set of no-op #define's is
55 // required. 55 // required.
56 56
57 #include <cyg/infra/cyg_type.h>
58
57 #define HAL_ICACHE_ENABLE() 59 #define HAL_ICACHE_ENABLE()
58 #define HAL_ICACHE_DISABLE() 60 #define HAL_ICACHE_DISABLE()
59 #define HAL_ICACHE_SYNC() 61 #define HAL_ICACHE_SYNC()
60 #define HAL_ICACHE_INVALIDATE_ALL() 62 #define HAL_ICACHE_INVALIDATE_ALL()
63 #define HAL_ICACHE_IS_ENABLED(_state_) \
64 CYG_MACRO_START \
65 (_state_) = 0; \
66 CYG_MACRO_END
61 67
62 #define HAL_DCACHE_ENABLE() 68 #define HAL_DCACHE_ENABLE()
63 #define HAL_DCACHE_DISABLE() 69 #define HAL_DCACHE_DISABLE()
64 #define HAL_DCACHE_SYNC() 70 #define HAL_DCACHE_SYNC()
65 #define HAL_DCACHE_INVALIDATE_ALL() 71 #define HAL_DCACHE_INVALIDATE_ALL()
72 #define HAL_DCACHE_IS_ENABLED(_state_) \
73 CYG_MACRO_START \
74 (_state_) = 0; \
75 CYG_MACRO_END
66 76
67 //----------------------------------------------------------------------------- 77 //-----------------------------------------------------------------------------
68 #endif // ifndef CYGONCE_HAL_CACHE_H 78 #endif // ifndef CYGONCE_HAL_CACHE_H
69 // End of hal_cache.h 79 // End of hal_cache.h