260 lines
14 KiB
HTML
260 lines
14 KiB
HTML
<!-- HTML header for doxygen 1.9.1-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.15.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>L4Re Operating System Framework: CPU related functions</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
|
<link href="l4re-awesome.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="L4Re_rgb_logo_quer_hg_h55.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">L4Re Operating System Framework
|
|
</div>
|
|
<div id="projectbrief">Interface and Usage Documentation</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.15.0 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
</script>
|
|
<script type="text/javascript">
|
|
$(function() { codefold.init(); });
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search',true);
|
|
$(function() { init_search(); });
|
|
});
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function(){initNavTree('group__l4util__cpu.html','',''); });
|
|
</script>
|
|
<div id="container">
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">CPU related functions <div class="ingroups"><a class="el" href="group__l4util__api.html">Utility Functions</a></div></div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div id="dynsection-0" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"><span class="dynarrow"><span class="arrowhead closed"></span></span>Collaboration diagram for CPU related functions:</div>
|
|
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
|
|
</div>
|
|
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
|
|
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="group__l4util__cpu.svg" width="350" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
|
</div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 id="header-func-members" class="groupheader"><a id="func-members" name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:gae95607a69173331386af6f334be961ce" id="r_gae95607a69173331386af6f334be961ce"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#gae95607a69173331386af6f334be961ce">l4util_cpu_has_cpuid</a> (void)</td></tr>
|
|
<tr class="memdesc:gae95607a69173331386af6f334be961ce"><td class="mdescLeft"> </td><td class="mdescRight">Check whether the CPU supports the "cpuid" instruction. <br /></td></tr>
|
|
<tr class="memitem:ga8c07254a927cdb66b4639c7b977eeead" id="r_ga8c07254a927cdb66b4639c7b977eeead"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga8c07254a927cdb66b4639c7b977eeead">l4util_cpu_capabilities</a> (void)</td></tr>
|
|
<tr class="memdesc:ga8c07254a927cdb66b4639c7b977eeead"><td class="mdescLeft"> </td><td class="mdescRight">Returns the CPU capabilities if the "cpuid" instruction is available. <br /></td></tr>
|
|
<tr class="memitem:ga7b371adca6d25b6c78978446e7c5d9d7" id="r_ga7b371adca6d25b6c78978446e7c5d9d7"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga7b371adca6d25b6c78978446e7c5d9d7">l4util_cpu_capabilities_nocheck</a> (void)</td></tr>
|
|
<tr class="memdesc:ga7b371adca6d25b6c78978446e7c5d9d7"><td class="mdescLeft"> </td><td class="mdescRight">Returns the CPU capabilities. <br /></td></tr>
|
|
<tr class="memitem:ga210ddb09b799c674102ae776eaa9e003" id="r_ga210ddb09b799c674102ae776eaa9e003"><td class="memItemLeft" align="right" valign="top"><a id="ga210ddb09b799c674102ae776eaa9e003" name="ga210ddb09b799c674102ae776eaa9e003"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>l4util_cpu_cpuid</b> (unsigned long mode, unsigned long *eax, unsigned long *ebx, unsigned long *ecx, unsigned long *edx)</td></tr>
|
|
<tr class="memdesc:ga210ddb09b799c674102ae776eaa9e003"><td class="mdescLeft"> </td><td class="mdescRight">Generic CPUID access function. <br /></td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
|
|
<a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Function Documentation</h2>
|
|
<a id="ga8c07254a927cdb66b4639c7b977eeead" name="ga8c07254a927cdb66b4639c7b977eeead"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga8c07254a927cdb66b4639c7b977eeead">◆ </a></span>l4util_cpu_capabilities()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">unsigned int l4util_cpu_capabilities </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the CPU capabilities if the "cpuid" instruction is available. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>CPU capabilities if the "cpuid" instruction is available, 0 if the "cpuid" instruction is not supported. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="amd64_2l4_2util_2cpu_8h_source.html#l00095">95</a> of file <a class="el" href="amd64_2l4_2util_2cpu_8h_source.html">cpu.h</a>.</p>
|
|
|
|
<p class="reference">References <a class="el" href="amd64_2l4_2util_2cpu_8h_source.html#l00084">l4util_cpu_capabilities_nocheck()</a>, and <a class="el" href="amd64_2l4_2util_2cpu_8h_source.html#l00064">l4util_cpu_has_cpuid()</a>.</p>
|
|
<div id="dynsection-1" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"><span class="dynarrow"><span class="arrowhead closed"></span></span>Here is the call graph for this function:</div>
|
|
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
|
|
</div>
|
|
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
|
|
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="group__l4util__cpu_ga8c07254a927cdb66b4639c7b977eeead_cgraph.svg" width="567" height="102"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga7b371adca6d25b6c78978446e7c5d9d7" name="ga7b371adca6d25b6c78978446e7c5d9d7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga7b371adca6d25b6c78978446e7c5d9d7">◆ </a></span>l4util_cpu_capabilities_nocheck()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">unsigned int l4util_cpu_capabilities_nocheck </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the CPU capabilities. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>CPU capabilities. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="amd64_2l4_2util_2cpu_8h_source.html#l00084">84</a> of file <a class="el" href="amd64_2l4_2util_2cpu_8h_source.html">cpu.h</a>.</p>
|
|
|
|
<p class="reference">References <a class="el" href="amd64_2l4_2util_2cpu_8h_source.html#l00070">l4util_cpu_cpuid()</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="amd64_2l4_2util_2cpu_8h_source.html#l00095">l4util_cpu_capabilities()</a>.</p>
|
|
<div id="dynsection-2" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"><span class="dynarrow"><span class="arrowhead closed"></span></span>Here is the call graph for this function:</div>
|
|
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
|
|
</div>
|
|
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
|
|
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="group__l4util__cpu_ga7b371adca6d25b6c78978446e7c5d9d7_cgraph.svg" width="352" height="51"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
|
</div>
|
|
<div id="dynsection-3" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"><span class="dynarrow"><span class="arrowhead closed"></span></span>Here is the caller graph for this function:</div>
|
|
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
|
|
</div>
|
|
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
|
|
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="group__l4util__cpu_ga7b371adca6d25b6c78978446e7c5d9d7_icgraph.svg" width="392" height="51"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gae95607a69173331386af6f334be961ce" name="gae95607a69173331386af6f334be961ce"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gae95607a69173331386af6f334be961ce">◆ </a></span>l4util_cpu_has_cpuid()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int l4util_cpu_has_cpuid </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Check whether the CPU supports the "cpuid" instruction. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>1 if it has, 0 if it has not </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="amd64_2l4_2util_2cpu_8h_source.html#l00064">64</a> of file <a class="el" href="amd64_2l4_2util_2cpu_8h_source.html">cpu.h</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="amd64_2l4_2util_2cpu_8h_source.html#l00095">l4util_cpu_capabilities()</a>.</p>
|
|
<div id="dynsection-4" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"><span class="dynarrow"><span class="arrowhead closed"></span></span>Here is the caller graph for this function:</div>
|
|
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
|
|
</div>
|
|
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
|
|
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="group__l4util__cpu_gae95607a69173331386af6f334be961ce_icgraph.svg" width="383" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<div id="page-nav" class="page-nav-panel">
|
|
<div id="page-nav-resize-handle"></div>
|
|
<div id="page-nav-tree">
|
|
<div id="page-nav-contents">
|
|
</div><!-- page-nav-contents -->
|
|
</div><!-- page-nav-tree -->
|
|
</div><!-- page-nav -->
|
|
</div><!-- container -->
|
|
<!-- HTML footer for doxygen 1.9.1-->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="footer">Generated on <span class="timestamp"></span> for L4Re Operating System Framework by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.15.0 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|