📄 mmumaplib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/mmuMapLib.html - generated by refgen from ../arm/mmuMapLib.c --> <title> mmuMapLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.htm"><i>VxWorks API Reference : OS Libraries</i></a></p></blockquote><h1>mmuMapLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>mmuMapLib</strong> - MMU mapping library for ARM Ltd. processors </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./mmuMapLib.html#mmuVirtToPhys">mmuVirtToPhys</a>( )</b> - translate a virtual address to a physical address (ARM)<br><b><a href="./mmuMapLib.html#mmuPhysToVirt">mmuPhysToVirt</a>( )</b> - translate a physical address to a virtual address (ARM)<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides additional MMU support routines. These arepresent in a separate module from <b>mmuLib.c</b>, so that these routines canbe used without including all the code in that object module.<hr><a name="mmuVirtToPhys"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>mmuVirtToPhys( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>mmuVirtToPhys( )</strong> - translate a virtual address to a physical address (ARM)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void * mmuVirtToPhys ( void * virtAddr /* virtual address to be translated */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function converts a virtual address to a physical address usingthe information contained within the sysPhysMemDesc structure of theBSP. This routine may be used both by the BSP MMU initialization andby the vm(Base)Lib code.<p>If the BSP has a default mapping where physical and virtualaddresses are not identical, then it must provide routines to the cacheand MMU architecture code to convert between physical and virtualaddresses. If the mapping described within the sysPhysMemDesc structureis accurate, then the BSP may use this routine. If it is notaccurate, then routines must be provided within the BSP that areaccurate.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine simply performs a linear search through thesysPhysMemDesc structure looking for the first entry with an addressrange that includes the given address. Typically, the performance ofthis should not be a problem, as this routine will generally be calledto translate RAM addresses, and by convention, the RAM entries comefirst in the structure. If this becomes an issue, the routine could bechanged so that a separate structure to sysPhysMemDesc is used,containing the information in a more quickly accessible form. In anycase, if this is not satisfactory, the BSP can provide its ownroutines.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./mmuMapLib.html#top">mmuMapLib</a></b>, <b>mmuPhysToVirt</b><p></blockquote><h4>RETURNS</h4><blockquote><p>the physical address<hr><a name="mmuPhysToVirt"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>mmuPhysToVirt( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>mmuPhysToVirt( )</strong> - translate a physical address to a virtual address (ARM)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void * mmuPhysToVirt ( void * physAddr /* physical address to be translated */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function converts a physical address to a virtual address usingthe information contained within the sysPhysMemDesc structure of theBSP. This routine may be used both by the BSP MMU initialization and bythe vm(Base)Lib code.<p>If the BSP has a default mapping where physical and virtualaddresses are not identical, then it must provide routines to the cacheand MMU architecture code to convert between physical and virtualaddresses. If the mapping described within the sysPhysMemDesc structureis accurate, then the BSP may use this routine. If it is notaccurate, then routines must be provided within the BSP that areaccurate.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine simply performs a linear search through thesysPhysMemDesc structure looking for the first entry with an addressrange that includes the given address. Typically, the performance ofthis should not be a problem, as this routine will generally be calledto translate RAM addresses, and by convention, the RAM entries comefirst in the structure. If this becomes an issue, the routine could bechanged so that a separate structure to sysPhysMemDesc is used,containing the information in a more quickly accessible form. In anycase, if this is not satisfactory, the BSP can provide its ownroutines.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./mmuMapLib.html#top">mmuMapLib</a></b>, <b>mmuVirtToPhys</b><p></blockquote><h4>RETURNS</h4><blockquote><p>the virtual address</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -