VxWorks Reference Manual : Libraries
cacheSh7040Lib - Hitachi SH7040 cache management library
cacheSh7040LibInit( ) - initialize the SH7040 cache library
This library contains architecture-specific cache library functions for the Hitachi SH7040 architecture. This architecture has a 1-Kbyte instruction cache.
For general information about caching, see the manual entry for cacheLib.
cacheLib.h
cacheSh7040LibInit( ) - initialize the SH7040 cache library
STATUS cacheSh7040LibInit ( CACHE_MODE instMode, /* instruction cache mode */ CACHE_MODE dataMode /* data cache mode (ignored) */ )
This routine initializes the cache library for the Hitachi SH7040 processors. It initializes the function pointers and configures the caches to the specified cache modes. Modes should be set before caching is enabled. If two complementary flags are set (enable/disable), no action is taken for any of the input flags.
Next caching modes are available for the SH7040 processors:
SH7040: CACHE_WRITETHROUGH (cache for instruction) CACHE_SH7040_DRAM (enable caching for DRAM space) CACHE_SH7040_CS3 (enable caching for CS3 space) CACHE_SH7040_CS2 (enable caching for CS2 space) CACHE_SH7040_CS1 (enable caching for CS1 space) CACHE_SH7040_CS0 (enable caching for CS0 space)
OK, or ERROR if the specified caching modes were invalid.