📄 cachemb930lib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/cacheMb930Lib.html - generated by refgen from ../sparc/cacheMb930Lib.c --> <title> cacheMb930Lib </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>cacheMb930Lib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>cacheMb930Lib</strong> - Fujitsu MB86930 (SPARClite) cache management library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./cacheMb930Lib.html#cacheMb930LibInit">cacheMb930LibInit</a></i>( )</b> - initialize the Fujitsu MB86930 cache library<br><b><i><a href="./cacheMb930Lib.html#cacheMb930LockAuto">cacheMb930LockAuto</a></i>( )</b> - enable MB86930 automatic locking of kernel instructions/data<br><b><i><a href="./cacheMb930Lib.html#cacheMb930ClearLine">cacheMb930ClearLine</a></i>( )</b> - clear a line from an MB86930 cache<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains architecture-specific cache library functions forthe Fujitsu MB86930 (SPARClite) architecture. There are separate smallinstruction and data caches on chip, both of which operate inwrite-through mode. Each cache line contains 16 bytes. Cache tags may be"flushed" by accesses to alternate space in supervisor mode. Invalidateoperations are performed in software by writing zero to the cache tags inan iterative manner. Locked data cache tags are not invalidated since thedata resides only in the cache and not in RAM. The global and local cachelocking features are beneficial for real-time systems. Note that there isno MMU (Memory Management Unit) support.<p>For general information about caching, see the manual entry for cacheLib.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>arch/sparc/sparclite.h</b>, <b>cacheLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheMb930Lib.html#top">cacheMb930Lib</a></b>, <b><a href="./cacheLib.html#top">cacheLib</a></b><hr><a name="cacheMb930LibInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheMb930LibInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheMb930LibInit</i>( )</strong> - initialize the Fujitsu MB86930 cache library</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheMb930LibInit ( CACHE_MODE instMode, /* instruction cache mode */ CACHE_MODE dataMode /* data cache mode */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine installs the function pointers for the Fujitsu MB86930 cachelibrary and performs other necessary cache library initialization.The board support package selects this cache library by setting thefunction pointer <b>sysCacheLibInit</b> equal to <b><i><a href="./cacheMb930Lib.html#cacheMb930LibInit">cacheMb930LibInit</a></i>( )</b>. Notethat <b>sysCacheLibInit</b> must be initialized on declaration, placing it inthe ".data" section.<p>This routine invalidates the cache tags and leaves the cache disabled.It should only be called during initialization, before any cache lockinghas taken place.<p>The only available mode for the MB86930 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="./cacheMb930Lib.html#top">cacheMb930Lib</a></b><hr><a name="cacheMb930LockAuto"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheMb930LockAuto</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheMb930LockAuto</i>( )</strong> - enable MB86930 automatic locking of kernel instructions/data</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void cacheMb930LockAuto (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine enables automatic cache locking of kernel instructionsand data into MB86930 caches. Once entries are locked into the caches,they cannot be unlocked.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheMb930Lib.html#top">cacheMb930Lib</a></b><hr><a name="cacheMb930ClearLine"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheMb930ClearLine</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheMb930ClearLine</i>( )</strong> - clear a line from an MB86930 cache</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheMb930ClearLine ( CACHE_TYPE cache, /* cache to clear entry */ void * address /* virtual address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine flushes and invalidates a specified line from thespecified MB86930 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="./cacheMb930Lib.html#top">cacheMb930Lib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -