⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 x-ix863.html

📁 这个包包是Vxworks的编程手册!全英文的!很好很强大!希望大家喜欢!!!!
💻 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>    Intel x86   </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="x-ix86.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="x-ix862.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="x-ix864.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="84440">D.3  &nbsp;&nbsp;Interface Variations</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84441"> </a>This section describes particular features and routines that are specific to x86 targets in any of the following ways:</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84442"> </a>available only for x86 targets </li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84443"> </a>parameters specific to x86 targets </li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84444"> </a>special restrictions or characteristics on x86 targets </li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="84445"> </a>For complete documentation, see the reference entries.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84448">Supported Routines in <b class="library">mathALib</b> </a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84449"> </a>For x86 targets, the following floating-point routines are supported. These routines are also available without a hardware floating-point processor by selecting <b class="symbol_UC">INCLUDE_SW_FP</b> for inclusion in the project facility VxWorks view. For more information about configuring the software floating-point emulation library, see <a href="x-ix864.html#85186"><i class="title">Software Floating-Point Emulation</i></a>. See <b class="library">mathALib</b> and the individual manual entries for descriptions of each routine.<p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84456"> </a><b class="routine"><i class="routine">acos</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84458"> </a><b class="routine"><i class="routine">asin</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84460"> </a><b class="routine"><i class="routine">atan</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84462"> </a><b class="routine"><i class="routine">atan2</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84464"> </a><b class="routine"><i class="routine">ceil</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84466"> </a><b class="routine"><i class="routine">cos</i></b><b>(&nbsp;)</b> </p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84468"> </a><b class="routine"><i class="routine">exp</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84470"> </a><b class="routine"><i class="routine">fabs</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84472"> </a><b class="routine"><i class="routine">floor</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84474"> </a><b class="routine"><i class="routine">fmod</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84476"> </a><b class="routine"><i class="routine">infinity</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84478"> </a><b class="routine"><i class="routine">irint</i></b><b>(&nbsp;)</b> </p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84480"> </a><b class="routine"><i class="routine">iround</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84482"> </a><b class="routine"><i class="routine">log</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84484"> </a><b class="routine"><i class="routine">log10</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84486"> </a><b class="routine"><i class="routine">log2</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84488"> </a><b class="routine"><i class="routine">pow</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84490"> </a><b class="routine"><i class="routine">round</i></b><b>(&nbsp;)</b> </p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84492"> </a><b class="routine"><i class="routine">sin</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84494"> </a><b class="routine"><i class="routine">sincos</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84496"> </a><b class="routine"><i class="routine">sqrt</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84498"> </a><b class="routine"><i class="routine">tan</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84500"> </a><b class="routine"><i class="routine">trunc</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84502"> </a></p></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84505">Architecture-Specific Global Variables</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84567"> </a>The file <b class="file">sysLib.c</b> contains the global variables shown in <a href="x-ix863.html#84515">Table&nbsp;D-1</a>.<b><p class="table"><h4 class="EntityTitle"><a name="84515"><font face="Helvetica, sans-serif" size="-1" class="sans">Table D-1:&nbsp;&nbsp;Architecture-Specific Global Variables &nbsp;</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="84521"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Global Variable</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="84523"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Value</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="84525"> </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="84528"> </a><b class="symbol_lc">sysVectorIRQ0</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="84530"> </a>0x20 (default)&nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="84532"> </a>A mapping of the base vector for IRQ0. &nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="84535"> </a><b class="symbol_lc">sysIntIdtType</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="84537"> </a>0x0000fe00 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(default) <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= trap gate&nbsp;</div><div class="CellBody"><a name="84538"> </a>0x0000ee00  <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= interrupt gate&nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="84540"> </a>Used when VxWorks initializes the interrupt vector table. The choice of trap gate vs. interrupt gate affects all interrupts (vectors 0x20 through 0xff).&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="84543"> </a><b class="symbol_lc">sysGDT[]</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="84545"> </a>0x3ff limit (default)&nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="84547"> </a>The Global Descriptor Table has five entries. The first is a null descriptor. The second and third are for task-level routines. The fourth is for interrupt-level routines. The fifth is reserved.&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="84550"> </a><b class="symbol_lc">sysProcessor</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="84552"> </a>0 = i386 <br>1 = i486 <br>2 = Pentium <br>4 = PentiumPro&nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="84556"> </a>The processor type (set by VxWorks).&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="84559"> </a><b class="symbol_lc">sysCoprocessor</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="84561"> </a>0 = no coprocessor&nbsp;</div><div class="CellBody"><a name="84562"> </a>1 = 387 coprocessor&nbsp;</div><div class="CellBody"><a name="84563"> </a>2 = 487 coprocessor&nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="84565"> </a>The type of floating-point coprocessor (set by VxWorks).<b></b>&nbsp;</div></td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></b> </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84570">Architecture-Specific Routines</a></i></h4></font><dl class="margin"><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="84571">Register Routines</a></i></h5></font><dl class="margin"><dd><p class="Body"><a name="84573"> </a>The following routines read x86 register values, and require one parameter, the task ID:<p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84577"> </a><b class="routine"><i class="routine">eax</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84580"> </a><b class="routine"><i class="routine">ebx</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84583"> </a><b class="routine"><i class="routine">ecx</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84586"> </a><b class="routine"><i class="routine">edx</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84589"> </a><b class="routine"><i class="routine">edi</i></b><b>(&nbsp;)</b> </p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84592"> </a><b class="routine"><i class="routine">esi</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84595"> </a><b class="routine"><i class="routine">ebp</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84598"> </a><b class="routine"><i class="routine">esp</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84601"> </a><b class="routine"><i class="routine">eflags</i></b><b>(&nbsp;)</b> </p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84603"> </a></p></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="84607"> </a><a href="x-ix863.html#84614">Table&nbsp;D-2</a> shows additional architecture-specific routines. Other architecture-specific routines are described throughout this section.<p class="table"><h4 class="EntityTitle"><a name="84614"><font face="Helvetica, sans-serif" size="-1" class="sans">Table D-2:&nbsp;&nbsp;Architecture-Specific Routines &nbsp;</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="84620"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Routine</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="84622"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Function Header</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="84624"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Description</font></b></div></th></tr><tr><td colspan="20"><hr class="tablerule2"></td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -