VxWorks API Reference : OS Libraries

cacheR32kLib

NAME

cacheR32kLib - MIPS RC32364 cache management library

ROUTINES

cacheR32kLibInit( ) - initialize the RC32364 cache library
cacheR32kMalloc( ) - allocate a cache-safe buffer, if possible

DESCRIPTION

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.

INCLUDE FILES

cacheLib.h

SEE ALSO

cacheLib


OS Libraries : Routines

cacheR32kLibInit( )

NAME

cacheR32kLibInit( ) - initialize the RC32364 cache library

SYNOPSIS

STATUS cacheR32kLibInit
    (
    CACHE_MODE instMode,      /* instruction cache mode */
    CACHE_MODE dataMode       /* data cache mode */
    )

DESCRIPTION

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.

RETURNS

OK.

SEE ALSO

cacheR32kLib


OS Libraries : Routines

cacheR32kMalloc( )

NAME

cacheR32kMalloc( ) - allocate a cache-safe buffer, if possible

SYNOPSIS

void * cacheR32kMalloc
    (
    size_t bytes
    )

DESCRIPTION

This routine will attempt to return a pointer to a section of memory that will not experience any cache coherency problems.

RETURNS

A pointer to the non-cached buffer, or NULL.

SEE ALSO

cacheR32kLib