comparison packages/hal/mn10300/am33/current/include/var_cache.h @ 115:6ed91473a1cd ecos-sw-2000-08-21

Merge from eCos master repository on 2000-08-21-22:40:54-BST
author jlarmour
date Fri, 25 Aug 2000 17:32:38 +0000
parents 435cced73e2f
children 38892b97b685
comparison
equal deleted inserted replaced
114:5ad2b71d525e 115:6ed91473a1cd
33 //####COPYRIGHTEND#### 33 //####COPYRIGHTEND####
34 //============================================================================= 34 //=============================================================================
35 //#####DESCRIPTIONBEGIN#### 35 //#####DESCRIPTIONBEGIN####
36 // 36 //
37 // Author(s): nickg 37 // Author(s): nickg
38 // Contributors: nickg 38 // Contributors: nickg, dmoseley
39 // Date: 1998-02-17 39 // Date: 1998-02-17
40 // Purpose: Cache control API 40 // Purpose: Cache control API
41 // Description: The macros defined here provide the HAL APIs for handling 41 // Description: The macros defined here provide the HAL APIs for handling
42 // cache control operations. 42 // cache control operations.
43 // Usage: 43 // Usage:
192 // This functionality requires 4 register variables. To prevent register 192 // This functionality requires 4 register variables. To prevent register
193 // spilling, put the code in a separate function. 193 // spilling, put the code in a separate function.
194 externC void cyg_hal_dcache_store(CYG_ADDRWORD base, int size); 194 externC void cyg_hal_dcache_store(CYG_ADDRWORD base, int size);
195 195
196 #define HAL_DCACHE_STORE( _base_ , _size_ ) \ 196 #define HAL_DCACHE_STORE( _base_ , _size_ ) \
197 cyg_hal_dcache_store((_base_), (_size_)) 197 cyg_hal_dcache_store((CYG_ADDRWORD)(_base_), (_size_))
198 198
199 // Preread the given range into the cache with the intention of reading 199 // Preread the given range into the cache with the intention of reading
200 // from it later. 200 // from it later.
201 //#define HAL_DCACHE_READ_HINT( _base_ , _size_ ) 201 //#define HAL_DCACHE_READ_HINT( _base_ , _size_ )
202 202