VxWorks Reference Manual : Libraries

cacheSh7604Lib

NAME

cacheSh7604Lib - Hitachi SH7604/SH7615 cache management library

ROUTINES

cacheSh7604LibInit( ) - initialize the SH7604/SH7615 cache library

DESCRIPTION

This library contains architecture-specific cache library functions for the Hitachi SH7604/SH7615 instruction and data mixed cache.

INCLUDE FILES

cacheLib.h

SEE ALSO

cacheSh7604Lib, cacheLib


Libraries : Routines

cacheSh7604LibInit( )

NAME

cacheSh7604LibInit( ) - initialize the SH7604/SH7615 cache library

SYNOPSIS

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

DESCRIPTION

This routine initializes the cache library for the Hitachi SH7604/SH7615 processor. It initializes the function pointers and configures the caches to the specified cache modes. Modes should be set before caching is enabled.

The following caching modes are available for the SH7604/SH7615 processor:

SH7604: CACHE_WRITETHROUGH (cache for instruction and data)
CACHE_2WAY_MODE (2KB 2-way cache + 2KB RAM)

RETURNS

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

SEE ALSO

cacheSh7604Lib