VxWorks API Reference : OS Libraries
cacheR32kLib - MIPS RC32364 cache management library
cacheR32kLibInit( ) - initialize the RC32364 cache library
cacheR32kMalloc( ) - allocate a cache-safe buffer, if possible
This library contains architecture-specific cache library functions for the MIPS IDT RC32364 architecture.
For general information about caching, see the manual entry for cacheLib.
cacheLib.h
cacheR32kLibInit( ) - initialize the RC32364 cache library
STATUS cacheR32kLibInit ( CACHE_MODE instMode, /* instruction cache mode */ CACHE_MODE dataMode /* data cache mode */ )
This routine initializes the function pointers for the RC32364 cache library. The board support package can select this cache library by assigning the function pointer sysCacheLibInit to cacheR32kLibInit( ).
This routine determines the cache size and cache line size for the instruction and data cache automatically by reading the CP0 configuration register. This is different than most of the other cache library initialization calls, which take the cache and line sizes as parameters.
OK.
cacheR32kMalloc( ) - allocate a cache-safe buffer, if possible
void * cacheR32kMalloc ( size_t bytes )
This routine will attempt to return a pointer to a section of memory that will not experience any cache coherency problems.
A pointer to the non-cached buffer, or NULL.