📄 cachesun4lib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/cacheSun4Lib.html - generated by refgen from ../sparc/cacheSun4Lib.c --> <title> cacheSun4Lib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>cacheSun4Lib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>cacheSun4Lib</strong> - Sun-4 cache management library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./cacheSun4Lib.html#cacheSun4LibInit">cacheSun4LibInit</a></i>( )</b> - initialize the Sun-4 cache library<br><b><i><a href="./cacheSun4Lib.html#cacheSun4ClearLine">cacheSun4ClearLine</a></i>( )</b> - clear a line from a Sun-4 cache<br><b><i><a href="./cacheSun4Lib.html#cacheSun4ClearPage">cacheSun4ClearPage</a></i>( )</b> - clear a page from a Sun-4 cache<br><b><i><a href="./cacheSun4Lib.html#cacheSun4ClearSegment">cacheSun4ClearSegment</a></i>( )</b> - clear a segment from a Sun-4 cache<br><b><i><a href="./cacheSun4Lib.html#cacheSun4ClearContext">cacheSun4ClearContext</a></i>( )</b> - clear a specific context from a Sun-4 cache<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains architecture-specific cache library functions forthe Sun Microsystems Sun-4 architecture. There is a 64-Kbyte mixedinstruction and data cache that operates in write-through mode. Eachcache line contains 16 bytes. Cache tags may be "flushed" by accesses toalternate space in supervisor mode. Invalidate operations are performedin software by writing zero to the cache tags in an iterative manner. Tagoperations are performed on "page," "segment," or "context" granularity.<p>MMU (Memory Management Unit) support is needed to mark pages cacheable ornon-cacheable. For more information, see the manual entry for vmLib.<p>For general information about caching, see the manual entry for cacheLib.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>cacheLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheSun4Lib.html#top">cacheSun4Lib</a></b>, <b><a href="./cacheLib.html#top">cacheLib</a></b>, <b><a href="./vmLib.html#top">vmLib</a></b><hr><a name="cacheSun4LibInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheSun4LibInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheSun4LibInit</i>( )</strong> - initialize the Sun-4 cache library</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheSun4LibInit ( CACHE_MODE instMode, /* instruction cache mode */ CACHE_MODE dataMode /* data cache mode */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the function pointers for the Sun MicrosystemsSun-4 cache library. The board support package can select this cachelibrary by assigning the function pointer <b>sysCacheLibInit</b> to<b><i><a href="./cacheSun4Lib.html#cacheSun4LibInit">cacheSun4LibInit</a></i>( )</b>.<p>The only available mode for the Sun-4 cache is <b>CACHE_WRITETHROUGH</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if cache control is not supported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheSun4Lib.html#top">cacheSun4Lib</a></b><hr><a name="cacheSun4ClearLine"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheSun4ClearLine</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheSun4ClearLine</i>( )</strong> - clear a line from a Sun-4 cache</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheSun4ClearLine ( CACHE_TYPE cache, /* cache to clear */ void * address /* virtual address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine flushes and invalidates a specified line from the specifiedSun-4 cache.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the cache type is invalid or the cache controlis not supported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheSun4Lib.html#top">cacheSun4Lib</a></b><hr><a name="cacheSun4ClearPage"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheSun4ClearPage</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheSun4ClearPage</i>( )</strong> - clear a page from a Sun-4 cache</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheSun4ClearPage ( CACHE_TYPE cache, /* cache to clear */ void * address /* virtual address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine flushes and invalidates a specified page from the specifiedSun-4 cache.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the cache type is invalid or the cache controlis not supported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheSun4Lib.html#top">cacheSun4Lib</a></b><hr><a name="cacheSun4ClearSegment"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheSun4ClearSegment</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheSun4ClearSegment</i>( )</strong> - clear a segment from a Sun-4 cache</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheSun4ClearSegment ( CACHE_TYPE cache, /* cache to clear */ void * address /* virtual address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine flushes and invalidates a specified segment from the specifiedSun-4 cache.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the cache type is invalid or the cache controlis not supported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheSun4Lib.html#top">cacheSun4Lib</a></b><hr><a name="cacheSun4ClearContext"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheSun4ClearContext</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheSun4ClearContext</i>( )</strong> - clear a specific context from a Sun-4 cache</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheSun4ClearContext ( CACHE_TYPE cache, /* cache to clear */ void * address /* virtual address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine flushes and invalidates a specified context from the specifiedSun-4 cache.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the cache type is invalid or the cache controlis not supported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheSun4Lib.html#top">cacheSun4Lib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -