亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? c-smo4.html

?? this about vxworks operations systems
?? HTML
?? 第 1 頁 / 共 3 頁
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    Shared-Memory Objects   </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-smo.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-smo3.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-smo5.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="85343">6.4  &nbsp;&nbsp;Configuration</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85345"> </a>To include shared-memory objects in VxWorks, select <b class="symbol_UC">INCLUDE_SM_OBJ</b> for inclusion in the project facility VxWorks view. Most of the configuration is already done automatically from <b class="routine"><i class="routine">usrSmObjInit</i></b><b>(</b>&nbsp;<b>)</b> in <b class="file">usrConfig.c</b>. However, you may also need to modify some values in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Params</font></b> tab of the properties window to reflect your configuration; these are described in this section.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85348">6.4.1  &nbsp;&nbsp;Shared-Memory Objects and Shared-Memory Network Driver</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85354"> </a>Shared-memory objects and the shared-memory network<sup><a href="#foot"><b class="FootnoteMarker">1</b></a></sup> use the same memory region, anchor address, and interrupt mechanism. Configuring the system to use shared-memory objects is similar to configuring the shared-memory network driver. For a more detailed description of configuring and using the shared-memory network, see <i class="title">VxWorks Network Programmer's Guide: Data Link Layer Network Components</i>. If the default value for the shared-memory anchor address is modified, the anchor must be on a 256-byte boundary.</p><dd><p class="Body"><a name="85355"> </a>One of the most important aspects of configuring shared-memory objects is computing the address of the shared-memory anchor. The shared-memory anchor is a location accessible to all CPUs on the system, and is used by both VxMP and the shared-memory network driver. The anchor stores a pointer to the shared-memory header, a pointer to the shared-memory packet header (used by the shared-memory network driver), and a pointer to the shared-memory object header. </p><dd><p class="Body"><a name="85357"> </a>The address of the anchor is defined in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Params</font></b> tab of the Properties window with the constant <b class="symbol_UC">SM_ANCHOR_ADRS</b>. If the processor is booted with the shared-memory network driver, the anchor address is the same value as the boot device (<b class="symbol_lc">sm=</b><i class="textVariable">anchorAddress</i>). The shared-memory object initialization code uses the value from the boot line instead of the constant. If the shared-memory network driver is not used, modify the definition of <b class="symbol_UC">SM_ANCHOR_ADRS</b> as appropriate to reflect your system. </p><dd><p class="Body"><a name="85362"> </a>Two types of interrupts are supported and defined by <b class="symbol_UC">SM_INT_TYPE</b>: mailbox interrupts and bus interrupts (see <i class="title">VxWorks Network Programmer's Guide: Data Link Layer Network Components</i>). Mailbox interrupts (<b class="symbol_UC">SM_INT_MAILBOX</b>) are the preferred method, and bus interrupts (<b class="symbol_UC">SM_INT_BUS</b>) are the second choice. If interrupts cannot be used, a polling scheme can be employed (<b class="symbol_UC">SM_INT_NONE</b>), but this is much less efficient.</p><dd><p class="Body"><a name="85364"> </a>When a CPU initializes its shared-memory objects, it defines the interrupt type as well as three interrupt arguments. These describe how the CPU is notified of events. These values can be obtained for any attached CPU by calling <b class="routine"><i class="routine">smCpuInfoGet</i></b><b>(</b>&nbsp;<b>)</b>.</p><dd><p class="Body"><a name="85366"> </a>The default interrupt method for a target is defined by <b class="symbol_UC">SM_INT_TYPE</b>, <b class="symbol_UC">SM_INT_ARG1</b>,<b class="symbol_UC"> SM_INT_ARG2</b>,<b class="symbol_UC"> </b>and<b class="symbol_UC"> SM_INT_ARG3</b> on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Params</font></b> tab.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85367">6.4.2  &nbsp;&nbsp;Shared-Memory Region</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85369"> </a>Shared-memory objects rely on a shared-memory region that is visible to all processors. This region is used to store internal shared-memory object data structures and the shared-memory system partition.</p><dd><p class="Body"><a name="85370"> </a>The shared-memory region is usually in dual-ported RAM on the master, but it can also be located on a separate memory card. The shared-memory region address is defined when configuring the system as an offset from the shared-memory anchor address, <b class="symbol_UC">SM_ANCHOR_ADRS</b>, as shown in <a href="c-smo4.html#85378">Figure&nbsp;6-3</a>. <div class="frame"><h4 class="EntityTitle"><a name="85378"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 6-3:&nbsp;&nbsp;Shared-Memory Layout</font></a></h4><dl class="margin"><div class="Anchor"><a name="85428"> </a><img class="figure" border="0" src="images/c-smoa2.gif"></div></dl></div></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85430">6.4.3  &nbsp;&nbsp;Initializing the Shared-Memory Objects Package</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85433"> </a>Shared-memory objects are initialized by default in<b class="routine"><i class="routine"> </i></b>the routine <b class="routine"><i class="routine">usrSmObjInit</i></b><b>(</b>&nbsp;<b>)</b> in <i class="textVariable">installDir</i><b class="file">/target/src/config/usrSmObj.c</b>. The configuration steps taken for the master CPU differ slightly from those taken for the slaves. </p><dd><p class="Body"><a name="85435"> </a>The address for the shared-memory pool must be defined. If the memory is off-board, the value must be calculated (see <a href="c-smo4.html#85485">Figure&nbsp;6-5</a>).</p><dd><p class="Body"><a name="85443"> </a>The example configuration in <a href="c-smo4.html#85447">Figure&nbsp;6-4</a> uses the shared memory in the master CPU's dual-ported RAM. On the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Params</font></b> tab of the properties window for the master,<b class="symbol_UC"> SM_OFF_BOARD</b> is FALSE and <b class="symbol_UC">SM_ANCHOR_ADRS</b> is 0x600. <b class="symbol_UC">SM_OBJ_MEM_ADRS</b> is set to <b class="symbol_UC">NONE</b>, because on-board memory is used (it is malloc'ed at run-time); <b class="symbol_UC">SM_OBJ_MEM_SIZE </b>is set to 0x20000. For the slave, the board maps the base of the VME bus to the address 0x1000000. <b class="symbol_UC">SM_OFF_BOARD</b> is TRUE<b class="symbol_UC"> </b>and the anchor address is 0x1800600. This is calculated by taking the VMEbus address (0x800000) and adding it to the anchor address (0x600). Many boards require further address translation, depending on where the board maps VME memory. In this example, the anchor address for the slave is 0x1800600, because the board maps the base of the VME bus to the address 0x1000000. <div class="frame"><h4 class="EntityTitle"><a name="85447"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 6-4:&nbsp;&nbsp;Example Configuration: Dual-Ported Memory</font></a></h4><dl class="margin"><div class="Anchor"><a name="85477"> </a><img class="figure" border="0" src="images/c-smoa3.gif"></div></dl></div></p><dd><p class="Body"><a name="85481"> </a>In the example configuration in <a href="c-smo4.html#85485">Figure&nbsp;6-5</a>, the shared memory is on a separate memory board. On the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Params</font></b> tab for the master, <b class="symbol_UC">SM_OFF_BOARD</b> is TRUE, <b class="symbol_UC">SM_ANCHOR_ADRS</b> is 0x3000000, <b class="symbol_UC">SM_OBJ_MEM_ADRS</b> is set to <b class="symbol_UC">SM_ANCHOR_ADRS</b>, and <b class="symbol_UC">SM_OBJ_MEM_SIZE </b>is set to 0x100000. For the slave board, <b class="symbol_UC">SM_OFF_BOARD</b> is TRUE<b class="symbol_UC"> </b>and the anchor address is 0x2100000. This is calculated by taking the VMEbus address of the memory board (0x2000000) and adding it to the local VMEbus address (0x100000). <div class="frame"><h4 class="EntityTitle"><a name="85485"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 6-5:&nbsp;&nbsp;Example Configuration: an External Memory Board</font></a></h4><dl class="margin"><div class="Anchor"><a name="85519"> </a><img class="figure" border="0" src="images/c-smoa4.gif"></div></dl></div></p><dd><p class="Body"><a name="85520"> </a>Some additional configuration are sometimes required to make the shared memory non-cacheable, because the shared-memory pool is accessed by all processors on the backplane. By default, boards with an MMU have the MMU turned on. With the MMU on, memory that is off-board must be made non-cacheable. This is done using the data structure <b class="symbol_lc">sysPhysMemDesc </b>in <b class="file">sysLib.c</b>. This data structure must contain a virtual-to-physical mapping for the VME address space used for the shared-memory pool, and mark the memory as non-cacheable. (Most BSPs include this mapping by default.) See <a href="c-vm3.html#84391"><i class="title">7.3&nbsp;Virtual Memory Configuration</i></a> in this manual for additional information. </p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/caution.gif"></td><td><hr><div class="CalloutCell"><a name="86525"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">CAUTION:  </font></b></a>For the MC68030, if the MMU is off, data caching must be turned off globally; see the reference entry for <b class="library">cacheLib</b>.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><dl class="margin"><dd><p class="Body"><a name="85537"> </a>When shared-memory objects are initialized, the memory size as well as the maximum number of each object type must be specified. The master processor specifies the size of memory using the constant <b class="symbol_UC">SM_OBJ_MEM_SIZE</b>. Symbolic constants are used to set the maximum number of different objects. These constants are specified on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Params</font></b> tab of the properties window. See <a href="c-smo4.html#87165">Table&nbsp;6-5</a> for a list of these constants. <p class="table"><h4 class="EntityTitle"><a name="87165"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 6-5:&nbsp;&nbsp;Configuration Constants for Shared-Memory Objects</font></a></h4><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="87171"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Symbolic Constant</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeadingC" align="center"><a name="87173"> </a><b><font face="Helvetica, sans-serif" size="-1" class="sans">Default Value</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="87175"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Description</font></b></div></th></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="87178"> </a><b class="symbol_UC">SM_OBJ_MAX_TASK</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBodyC" align="center"><a name="87180"> </a>40</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="87182"> </a>Maximum number of tasks using shared-memory objects.&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="87185"> </a><b class="symbol_UC">SM_OBJ_MAX_SEM</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBodyC" align="center"><a name="87187"> </a>30</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="87189"> </a>Maximum number of shared semaphores (counting and binary).&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="87192"> </a><b class="symbol_UC">SM_OBJ_MAX_NAME</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBodyC" align="center"><a name="87194"> </a>100</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="87196"> </a>Maximum number of names in the name database.&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="87199"> </a><b class="symbol_UC">SM_OBJ_MAX_MSG_Q</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBodyC" align="center"><a name="87201"> </a>10</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="87203"> </a>Maximum number of shared message queues.&nbsp;</div></td></tr>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久亚洲伦| 国产激情91久久精品导航| 亚洲午夜在线视频| 极品少妇xxxx偷拍精品少妇| 99久久伊人久久99| 国产精品一区二区在线播放| 91看片淫黄大片一级在线观看| 欧美日韩一区二区在线观看视频 | 欧美国产日韩精品免费观看| 国产精品毛片大码女人| 激情综合色综合久久| 成人综合婷婷国产精品久久蜜臀 | 色94色欧美sute亚洲13| 欧美美女一区二区三区| 久久久精品国产99久久精品芒果| 欧美一区二区三区四区高清| 久久久久国产成人精品亚洲午夜| 亚洲另类在线视频| 日本va欧美va精品| 欧美tickling挠脚心丨vk| 国产色婷婷亚洲99精品小说| 日本美女一区二区| 欧美日韩国产123区| 亚洲同性gay激情无套| 国产在线国偷精品免费看| 8x福利精品第一导航| 一区2区3区在线看| a在线欧美一区| 午夜精品影院在线观看| 欧美亚洲尤物久久| 一区二区三区在线免费播放| 91精品国产美女浴室洗澡无遮挡| 亚洲伊人色欲综合网| 成人av资源下载| 国产欧美va欧美不卡在线| 国产精品中文欧美| 一区二区三区高清不卡| 337p粉嫩大胆色噜噜噜噜亚洲| 国产女人18毛片水真多成人如厕 | 久久精品噜噜噜成人av农村| 欧美日韩免费在线视频| 国产激情精品久久久第一区二区| 欧美大肚乱孕交hd孕妇| 男人操女人的视频在线观看欧美 | 在线电影欧美成精品| 成人av免费在线观看| 亚洲va欧美va国产va天堂影院| 盗摄精品av一区二区三区| 亚洲网友自拍偷拍| 日本一二三不卡| 日韩三级视频在线观看| 国产一区二区美女诱惑| 亚洲成人免费在线| 国产成人在线免费观看| 日本午夜一区二区| 一区二区三区在线观看动漫| 国产精品理伦片| 久久久久久麻豆| 日韩精品一区国产麻豆| 欧美日韩一区二区在线视频| 91香蕉视频黄| 99热精品国产| 成人午夜伦理影院| 国产福利一区二区三区视频在线| 国产精品成人免费| 国产欧美一区在线| 国产亚洲欧洲一区高清在线观看| 成人av手机在线观看| 国产69精品久久久久777| ●精品国产综合乱码久久久久| 美日韩一区二区| 久久久欧美精品sm网站| 91精品国产一区二区| 欧美二区三区91| 欧美一级生活片| 欧美一区二区三区免费观看视频 | 福利一区二区在线| 看电视剧不卡顿的网站| 美脚の诱脚舐め脚责91| 久久精品99国产国产精| 久久精品二区亚洲w码| 精品一区二区综合| 国产在线精品一区二区| 国产自产2019最新不卡| 国产一区二区按摩在线观看| 国产精品亚洲视频| 99久久精品国产精品久久| 97久久超碰精品国产| 色综合久久99| 国产成人精品一区二区三区四区 | 久久精品男人的天堂| 久久久久久99久久久精品网站| 色综合天天天天做夜夜夜夜做| 精品免费视频一区二区| 精品福利一二区| 欧美日韩情趣电影| 日韩欧美一区电影| 欧美激情在线观看视频免费| 国产日韩欧美一区二区三区乱码| 在线播放日韩导航| 亚洲精品在线观| 国产精品国产三级国产普通话蜜臀 | 91成人免费电影| 欧美日韩精品一区二区在线播放| 粉嫩av一区二区三区在线播放 | 久久夜色精品国产欧美乱极品| 色婷婷精品久久二区二区蜜臀av| 国产一区二区毛片| 色综合天天做天天爱| 欧美一区二区三区四区在线观看| 在线亚洲+欧美+日本专区| 国产乱码精品一区二区三区五月婷| 一区二区三区日本| 琪琪久久久久日韩精品| 成人精品gif动图一区| 欧美日韩国产乱码电影| 26uuu国产电影一区二区| 中文字幕在线一区| 日韩av一区二区三区四区| 国产suv一区二区三区88区| 欧美在线观看一区| 国产亚洲污的网站| 视频一区二区三区中文字幕| 亚洲毛片av在线| 樱桃国产成人精品视频| 精品影视av免费| 日本丶国产丶欧美色综合| 日韩欧美中文字幕制服| 亚洲精品日韩专区silk| 极品少妇一区二区三区精品视频| 日韩1区2区日韩1区2区| 99re亚洲国产精品| 欧美精品一级二级| 日韩理论片中文av| 国内不卡的二区三区中文字幕| 韩国女主播成人在线观看| 在线看国产一区二区| 欧美激情一区二区三区不卡 | 天天综合色天天| 成a人片亚洲日本久久| 6080亚洲精品一区二区| 亚洲免费视频成人| 国产成人丝袜美腿| 精品国精品国产| 日韩1区2区日韩1区2区| 欧美自拍偷拍午夜视频| 亚洲欧洲色图综合| 成人性生交大片免费看中文网站| 99久久综合色| 国产欧美一区二区在线观看| 国产资源在线一区| 欧美成人r级一区二区三区| 偷窥少妇高潮呻吟av久久免费| 另类欧美日韩国产在线| 欧美日韩大陆一区二区| 亚洲人精品一区| 波多野结衣91| 国产精品久久久久影院色老大| 亚洲视频每日更新| 成人av资源站| 中文字幕在线免费不卡| 99在线热播精品免费| 久久久精品tv| 成人精品视频一区二区三区| 国产日本亚洲高清| 成人精品免费网站| 综合网在线视频| 色婷婷综合中文久久一本| 亚洲女爱视频在线| 色婷婷久久综合| 一区二区三区四区高清精品免费观看 | 国产激情精品久久久第一区二区| 91视频www| 自拍av一区二区三区| 91在线观看免费视频| 中文字幕日韩欧美一区二区三区| 亚洲aaa精品| 日韩一区二区三区av| 精品一区二区日韩| 国产亚洲欧美日韩在线一区| 国内精品嫩模私拍在线| 欧美国产在线观看| av中文一区二区三区| 亚洲天堂中文字幕| 欧美性xxxxxxxx| 麻豆一区二区三| 中文字幕欧美激情| 色婷婷av一区二区| 日韩高清中文字幕一区| 精品日韩在线观看| 懂色av一区二区三区免费看| 亚洲视频香蕉人妖| 欧美日本免费一区二区三区| 精品无码三级在线观看视频 | 欧美日韩不卡在线| 国产曰批免费观看久久久| 欧美国产成人精品| 欧美日韩在线三区| 国产又粗又猛又爽又黄91精品| 精品视频1区2区3区|