mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
132 lines
13 KiB
HTML
132 lines
13 KiB
HTML
<!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.8.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>wut: /home/ash/Code/wut2/include/coreinit/codegen.h Source File</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="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" />
|
|
</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="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">wut
|
|
 <span id="projectnumber">1.0.0-beta9</span>
|
|
</div>
|
|
<div id="projectbrief">Wii U Toolchain</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- 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">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5050f3de292bd66075be80c4b119f1df.html">coreinit</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">codegen.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="codegen_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include <<a class="code" href="wut_8h.html">wut.h</a>></span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="group__coreinit__codegen.html#ga71a49a79e47963f81655cc0381c9658f"> 33</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group__coreinit__codegen.html#ga71a49a79e47963f81655cc0381c9658f">OSCodegenSecMode</a></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="group__coreinit__codegen.html#gga71a49a79e47963f81655cc0381c9658fa283eddc240c8b49af5568b91c5f35c73"> 36</a></span>  <a class="code" href="group__coreinit__codegen.html#gga71a49a79e47963f81655cc0381c9658fa283eddc240c8b49af5568b91c5f35c73">CODEGEN_RW_</a> = 0,</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="group__coreinit__codegen.html#gga71a49a79e47963f81655cc0381c9658facafba395111808a76182dd9c74d5545e"> 38</a></span>  <a class="code" href="group__coreinit__codegen.html#gga71a49a79e47963f81655cc0381c9658facafba395111808a76182dd9c74d5545e">CODEGEN_R_X</a> = 1,</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> } <a class="code" href="group__coreinit__codegen.html#ga71a49a79e47963f81655cc0381c9658f">OSCodegenSecMode</a>;</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <a class="code" href="group__coreinit__codegen.html#gaafd7747ab31cb4671397c486c9d78043">OSCodegenGetVirtAddrRange</a>(uint32_t* outVirtualAddress,</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  uint32_t* outSize);</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> uint32_t</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <a class="code" href="group__coreinit__codegen.html#gad621a18bf8f5173658f8cc8717d2495a">OSGetCodegenCore</a>();</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> uint32_t</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <a class="code" href="group__coreinit__codegen.html#gaf23cfcb6c33a574b7c88946e1fd3d942">OSGetCodegenMode</a>();</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <a class="code" href="group__coreinit__codegen.html#ga3d4d83b25c330418afe3293147b5ff58">OSSwitchSecCodeGenMode</a>(<a class="code" href="group__coreinit__codegen.html#ga71a49a79e47963f81655cc0381c9658f">OSCodegenSecMode</a> mode);</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment">//TODO: online docs imply this returns true if codegen is *enabled*, though the</span></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment">//name would imply it gets rw/rx status.</span></div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> uint32_t</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <a class="code" href="group__coreinit__codegen.html#ga3a951fec2cd23ca91ca56fc646f34b6b">OSGetSecCodeGenMode</a>();</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  </div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <a class="code" href="group__coreinit__codegen.html#ga348ef2b95998b4ad0b171db8f13884e5">OSCodegenCopy</a>(<span class="keywordtype">void</span>* dst, <span class="keywordtype">void</span>* src, <span class="keywordtype">size_t</span> size);</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> }</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="agroup__coreinit__codegen_html_ga348ef2b95998b4ad0b171db8f13884e5"><div class="ttname"><a href="group__coreinit__codegen.html#ga348ef2b95998b4ad0b171db8f13884e5">OSCodegenCopy</a></div><div class="ttdeci">BOOL OSCodegenCopy(void *dst, void *src, size_t size)</div><div class="ttdoc">Copies data from normal memory into the codegen area, leaving the area in CODEGEN_R_X mode.</div></div>
|
|
<div class="ttc" id="agroup__coreinit__codegen_html_gaafd7747ab31cb4671397c486c9d78043"><div class="ttname"><a href="group__coreinit__codegen.html#gaafd7747ab31cb4671397c486c9d78043">OSCodegenGetVirtAddrRange</a></div><div class="ttdeci">void OSCodegenGetVirtAddrRange(uint32_t *outVirtualAddress, uint32_t *outSize)</div><div class="ttdoc">Gets the location and size of codegen memory, if available.</div></div>
|
|
<div class="ttc" id="agroup__coreinit__codegen_html_gaf23cfcb6c33a574b7c88946e1fd3d942"><div class="ttname"><a href="group__coreinit__codegen.html#gaf23cfcb6c33a574b7c88946e1fd3d942">OSGetCodegenMode</a></div><div class="ttdeci">uint32_t OSGetCodegenMode()</div></div>
|
|
<div class="ttc" id="awut_8h_html"><div class="ttname"><a href="wut_8h.html">wut.h</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__codegen_html_ga3a951fec2cd23ca91ca56fc646f34b6b"><div class="ttname"><a href="group__coreinit__codegen.html#ga3a951fec2cd23ca91ca56fc646f34b6b">OSGetSecCodeGenMode</a></div><div class="ttdeci">uint32_t OSGetSecCodeGenMode()</div></div>
|
|
<div class="ttc" id="agroup__coreinit__codegen_html_ga71a49a79e47963f81655cc0381c9658f"><div class="ttname"><a href="group__coreinit__codegen.html#ga71a49a79e47963f81655cc0381c9658f">OSCodegenSecMode</a></div><div class="ttdeci">OSCodegenSecMode</div><div class="ttdoc">The memory permissions for the codegen area.</div><div class="ttdef"><b>Definition:</b> <a href="codegen_8h_source.html#l00033">codegen.h:33</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__codegen_html_ga3d4d83b25c330418afe3293147b5ff58"><div class="ttname"><a href="group__coreinit__codegen.html#ga3d4d83b25c330418afe3293147b5ff58">OSSwitchSecCodeGenMode</a></div><div class="ttdeci">BOOL OSSwitchSecCodeGenMode(OSCodegenSecMode mode)</div><div class="ttdoc">Switches the permissions on the codegen memory area.</div></div>
|
|
<div class="ttc" id="agroup__coreinit__codegen_html_gad621a18bf8f5173658f8cc8717d2495a"><div class="ttname"><a href="group__coreinit__codegen.html#gad621a18bf8f5173658f8cc8717d2495a">OSGetCodegenCore</a></div><div class="ttdeci">uint32_t OSGetCodegenCore()</div><div class="ttdoc">Gets the CPU core that's allowed to use codegen.</div></div>
|
|
<div class="ttc" id="awut__types_8h_html_a975dbe9e4396bf9e0064ce01827fa372"><div class="ttname"><a href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div><div class="ttdeci">int32_t BOOL</div><div class="ttdef"><b>Definition:</b> <a href="wut__types_8h_source.html#l00004">wut_types.h:4</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__codegen_html_gga71a49a79e47963f81655cc0381c9658facafba395111808a76182dd9c74d5545e"><div class="ttname"><a href="group__coreinit__codegen.html#gga71a49a79e47963f81655cc0381c9658facafba395111808a76182dd9c74d5545e">CODEGEN_R_X</a></div><div class="ttdeci">@ CODEGEN_R_X</div><div class="ttdoc">The area can be read or executed, but not written to.</div><div class="ttdef"><b>Definition:</b> <a href="codegen_8h_source.html#l00038">codegen.h:38</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__codegen_html_gga71a49a79e47963f81655cc0381c9658fa283eddc240c8b49af5568b91c5f35c73"><div class="ttname"><a href="group__coreinit__codegen.html#gga71a49a79e47963f81655cc0381c9658fa283eddc240c8b49af5568b91c5f35c73">CODEGEN_RW_</a></div><div class="ttdeci">@ CODEGEN_RW_</div><div class="ttdoc">The area can be read or written to, but not executed.</div><div class="ttdef"><b>Definition:</b> <a href="codegen_8h_source.html#l00036">codegen.h:36</a></div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|