VxWorks API Reference : OS Libraries

cacheSh7622Lib

NAME

cacheSh7622Lib - SH7622 cache management library

ROUTINES

cacheSh7622LibInit( ) - initialize the SH7622 cache library

DESCRIPTION

This library contains architecture-specific cache library functions for the Hitachi SH7622 instruction and data caches.

INCLUDE FILES

cacheLib.h

SEE ALSO

cacheLib

CF

Writing 1 flushes all the cahe entrie (clears the U,V and LRU
     table). Always read 0.

CB

Indicates the cache's operating mode in area P1.
     1 = write back mode, 0 = write through mode.

WT

Indicates the cache's operating mode in area P0,U0 and P3.
     1 =  write through mode, 0 = write back mode.

CE

Cache enabled.


OS Libraries : Routines

cacheSh7622LibInit( )

NAME

cacheSh7622LibInit( ) - initialize the SH7622 cache library

SYNOPSIS

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

DESCRIPTION

This routine initializes the cache library for the Hitachi SH7622 processor. 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. Data cache and istruction cache are mixed together in the SH7622.

Next caching modes are available for the SH7622 processor:

SH7622: CACHE_WRITETHROUGH (cache for instruction and data)
CACHE_COPYBACK_P1 (write-back cache for P1)

RETURNS

OK, or ERROR if the specified caching modes were invalid.

SEE ALSO

cacheSh7622Lib