wut/coreinit_2context_8h_source.html

117 lines
33 KiB
HTML
Raw Normal View History

2018-07-26 20:52:03 +10:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wut: include/coreinit/context.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
&#160;<span id="projectnumber">1.0.0-alpha</span>
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;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&amp;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">context.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="coreinit_2context_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>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="wut_8h.html">wut.h</a>&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="group__coreinit__context.html#ga924296baf430a531adb5135a5cd54207"> 15</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__coreinit__context.html#structOSContext">OSContext</a> <a class="code" href="group__coreinit__context.html#structOSContext">OSContext</a>;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="group__coreinit__context.html#ga919f76d6fbdcfed27d8a820cf48cd274"> 17</a></span>&#160;<span class="preprocessor">#define OS_CONTEXT_TAG 0x4F53436F6E747874ull</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="group__coreinit__context.html"> 19</a></span>&#160;<span class="keyword">struct </span><a class="code" href="group__coreinit__context.html#structOSContext">OSContext</a></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;{</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="group__coreinit__context.html#a51853ee24a1a56a03b7458779997f002"> 22</a></span>&#160; uint64_t <a class="code" href="group__coreinit__context.html#a51853ee24a1a56a03b7458779997f002">tag</a>;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="group__coreinit__context.html#ace5b78628342742013d28a0c766ce138"> 24</a></span>&#160; uint32_t <a class="code" href="group__coreinit__context.html#ace5b78628342742013d28a0c766ce138">gpr</a>[32];</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="group__coreinit__context.html#a8e23fd42bea24a908273ef614aea3550"> 25</a></span>&#160; uint32_t <a class="code" href="group__coreinit__context.html#a8e23fd42bea24a908273ef614aea3550">cr</a>;</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="group__coreinit__context.html#a6ced3f4007bb60daf12191c058e55b8c"> 26</a></span>&#160; uint32_t <a class="code" href="group__coreinit__context.html#a6ced3f4007bb60daf12191c058e55b8c">lr</a>;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="group__coreinit__context.html#ab1c7aa939bbb69662d4f65f205d5d45e"> 27</a></span>&#160; uint32_t <a class="code" href="group__coreinit__context.html#ab1c7aa939bbb69662d4f65f205d5d45e">ctr</a>;</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="group__coreinit__context.html#aa9daa81592c3d8d93de24e5050d4d39e"> 28</a></span>&#160; uint32_t <a class="code" href="group__coreinit__context.html#aa9daa81592c3d8d93de24e5050d4d39e">xer</a>;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="group__coreinit__context.html#a5d5223835354a71e5
<div class="ttc" id="group__coreinit__context_html_a0581363c9dee8cdaa94dd1d83c6ccc25"><div class="ttname"><a href="group__coreinit__context.html#a0581363c9dee8cdaa94dd1d83c6ccc25">OSContext::pmc4</a></div><div class="ttdeci">uint32_t pmc4</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00046">context.h:46</a></div></div>
<div class="ttc" id="group__coreinit__context_html_a51853ee24a1a56a03b7458779997f002"><div class="ttname"><a href="group__coreinit__context.html#a51853ee24a1a56a03b7458779997f002">OSContext::tag</a></div><div class="ttdeci">uint64_t tag</div><div class="ttdoc">Should always be set to the value OS_CONTEXT_TAG. </div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00022">context.h:22</a></div></div>
<div class="ttc" id="group__coreinit__context_html_aa99fc1b6a6f591b7b412c53fbcabcd34"><div class="ttname"><a href="group__coreinit__context.html#aa99fc1b6a6f591b7b412c53fbcabcd34">OSContext::mmcr1</a></div><div class="ttdeci">uint32_t mmcr1</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00048">context.h:48</a></div></div>
<div class="ttc" id="group__coreinit__context_html_gac764b658d5f57fadc4de4c0ba8c34e19"><div class="ttname"><a href="group__coreinit__context.html#gac764b658d5f57fadc4de4c0ba8c34e19">OSDumpContext</a></div><div class="ttdeci">void OSDumpContext(OSContext *context)</div></div>
<div class="ttc" id="group__coreinit__context_html_af4ea525e6f15623e4e9c6c6aa75f2077"><div class="ttname"><a href="group__coreinit__context.html#af4ea525e6f15623e4e9c6c6aa75f2077">OSContext::state</a></div><div class="ttdeci">uint16_t state</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00035">context.h:35</a></div></div>
<div class="ttc" id="group__coreinit__context_html_af995146e85c329f27212cf3e1a30e25e"><div class="ttname"><a href="group__coreinit__context.html#af995146e85c329f27212cf3e1a30e25e">OSContext::gqr</a></div><div class="ttdeci">uint32_t gqr[8]</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00036">context.h:36</a></div></div>
<div class="ttc" id="group__coreinit__context_html_a5c7fe32d8c333859adf07d0d51248e08"><div class="ttname"><a href="group__coreinit__context.html#a5c7fe32d8c333859adf07d0d51248e08">OSContext::pmc1</a></div><div class="ttdeci">uint32_t pmc1</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00043">context.h:43</a></div></div>
<div class="ttc" id="group__coreinit__context_html_gadfb33ccd64260099bee7b040f61982e5"><div class="ttname"><a href="group__coreinit__context.html#gadfb33ccd64260099bee7b040f61982e5">OSInitContext</a></div><div class="ttdeci">void OSInitContext(OSContext *context, void *entry, void *stack)</div></div>
<div class="ttc" id="group__coreinit__context_html_a8e23fd42bea24a908273ef614aea3550"><div class="ttname"><a href="group__coreinit__context.html#a8e23fd42bea24a908273ef614aea3550">OSContext::cr</a></div><div class="ttdeci">uint32_t cr</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00025">context.h:25</a></div></div>
<div class="ttc" id="group__coreinit__context_html_a373a185d9090db87a55ed12cf2622a08"><div class="ttname"><a href="group__coreinit__context.html#a373a185d9090db87a55ed12cf2622a08">OSContext::psf</a></div><div class="ttdeci">double psf[32]</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00038">context.h:38</a></div></div>
<div class="ttc" id="group__coreinit__context_html_ad1b6711759d29126acd1ee809f545a56"><div class="ttname"><a href="group__coreinit__context.html#ad1b6711759d29126acd1ee809f545a56">OSContext::pmc3</a></div><div class="ttdeci">uint32_t pmc3</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00045">context.h:45</a></div></div>
<div class="ttc" id="group__coreinit__context_html_structOSContext"><div class="ttname"><a href="group__coreinit__context.html#structOSContext">OSContext</a></div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00019">context.h:19</a></div></div>
<div class="ttc" id="group__coreinit__context_html_a67485ebee7cded94475a562cbd9d960d"><div class="ttname"><a href="group__coreinit__context.html#a67485ebee7cded94475a562cbd9d960d">OSContext::fpr</a></div><div class="ttdeci">double fpr[32]</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00033">context.h:33</a></div></div>
<div class="ttc" id="group__coreinit__context_html_a994bc9ea1031f1ad305d4d7eaef71f35"><div class="ttname"><a href="group__coreinit__context.html#a994bc9ea1031f1ad305d4d7eaef71f35">OSContext::srr1</a></div><div class="ttdeci">uint32_t srr1</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00030">context.h:30</a></div></div>
<div class="ttc" id="group__coreinit__context_html_gae4b93f5f4d772680b906ffbc1b736c0f"><div class="ttname"><a href="group__coreinit__context.html#gae4b93f5f4d772680b906ffbc1b736c0f">OSLoadFPUContext</a></div><div class="ttdeci">void OSLoadFPUContext(OSContext *context)</div></div>
<div class="ttc" id="group__coreinit__context_html_a1bb7411f9602ddc316f0e483383eb2c9"><div class="ttname"><a href="group__coreinit__context.html#a1bb7411f9602ddc316f0e483383eb2c9">OSContext::fpscr</a></div><div class="ttdeci">uint32_t fpscr</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00032">context.h:32</a></div></div>
<div class="ttc" id="wut_8h_html"><div class="ttname"><a href="wut_8h.html">wut.h</a></div></div>
<div class="ttc" id="group__coreinit__context_html_aa8d183302fdfa4a6892f1d80300cdb32"><div class="ttname"><a href="group__coreinit__context.html#aa8d183302fdfa4a6892f1d80300cdb32">OSContext::error</a></div><div class="ttdeci">uint32_t error</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00041">context.h:41</a></div></div>
<div class="ttc" id="group__coreinit__context_html_ga0cf3992c00d9be25adccc83f470937f7"><div class="ttname"><a href="group__coreinit__context.html#ga0cf3992c00d9be25adccc83f470937f7">OSSetCurrentContext</a></div><div class="ttdeci">void OSSetCurrentContext(OSContext *context)</div></div>
<div class="ttc" id="group__coreinit__context_html_aa9daa81592c3d8d93de24e5050d4d39e"><div class="ttname"><a href="group__coreinit__context.html#aa9daa81592c3d8d93de24e5050d4d39e">OSContext::xer</a></div><div class="ttdeci">uint32_t xer</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00028">context.h:28</a></div></div>
<div class="ttc" id="group__coreinit__context_html_ga8cba61562a3df6b7803406633633eb4a"><div class="ttname"><a href="group__coreinit__context.html#ga8cba61562a3df6b7803406633633eb4a">OSSaveFPUContext</a></div><div class="ttdeci">void OSSaveFPUContext(OSContext *context)</div></div>
<div class="ttc" id="group__coreinit__context_html_a5e7ec153efce1e70b054a47da68ff5f7"><div class="ttname"><a href="group__coreinit__context.html#a5e7ec153efce1e70b054a47da68ff5f7">OSContext::coretime</a></div><div class="ttdeci">uint64_t coretime[3]</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00039">context.h:39</a></div></div>
<div class="ttc" id="group__coreinit__context_html_ga8072567238c7a10b509e478983776129"><div class="ttname"><a href="group__coreinit__context.html#ga8072567238c7a10b509e478983776129">OSLoadContext</a></div><div class="ttdeci">void OSLoadContext(OSContext *context)</div></div>
<div class="ttc" id="group__coreinit__context_html_ae2730aab7695ca3e81611b0a3ce195c9"><div class="ttname"><a href="group__coreinit__context.html#ae2730aab7695ca3e81611b0a3ce195c9">OSContext::starttime</a></div><div class="ttdeci">uint64_t starttime</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00040">context.h:40</a></div></div>
<div class="ttc" id="group__coreinit__context_html_ae13713d587c850fc1bfdcf9b4889217f"><div class="ttname"><a href="group__coreinit__context.html#ae13713d587c850fc1bfdcf9b4889217f">OSContext::pmc2</a></div><div class="ttdeci">uint32_t pmc2</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00044">context.h:44</a></div></div>
<div class="ttc" id="group__coreinit__context_html_ga7fa75c50f5b6a1ccb2e6a7af5b3cea5c"><div class="ttname"><a href="group__coreinit__context.html#ga7fa75c50f5b6a1ccb2e6a7af5b3cea5c">OSSwitchStack</a></div><div class="ttdeci">void * OSSwitchStack(void *stack)</div></div>
<div class="ttc" id="group__coreinit__context_html_ga3cd800d9bdaad5aa3e8e1503f34d2551"><div class="ttname"><a href="group__coreinit__context.html#ga3cd800d9bdaad5aa3e8e1503f34d2551">OSGetCurrentContext</a></div><div class="ttdeci">OSContext * OSGetCurrentContext()</div></div>
<div class="ttc" id="group__coreinit__context_html_ab1c7aa939bbb69662d4f65f205d5d45e"><div class="ttname"><a href="group__coreinit__context.html#ab1c7aa939bbb69662d4f65f205d5d45e">OSContext::ctr</a></div><div class="ttdeci">uint32_t ctr</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00027">context.h:27</a></div></div>
<div class="ttc" id="group__coreinit__context_html_gac0687440c00919a235329afec6485a14"><div class="ttname"><a href="group__coreinit__context.html#gac0687440c00919a235329afec6485a14">OSSaveContext</a></div><div class="ttdeci">uint32_t OSSaveContext(OSContext *context)</div></div>
<div class="ttc" id="group__coreinit__context_html_a5d5223835354a71e51ab50661f1ebdea"><div class="ttname"><a href="group__coreinit__context.html#a5d5223835354a71e51ab50661f1ebdea">OSContext::srr0</a></div><div class="ttdeci">uint32_t srr0</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00029">context.h:29</a></div></div>
<div class="ttc" id="group__coreinit__context_html_ace5b78628342742013d28a0c766ce138"><div class="ttname"><a href="group__coreinit__context.html#ace5b78628342742013d28a0c766ce138">OSContext::gpr</a></div><div class="ttdeci">uint32_t gpr[32]</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00024">context.h:24</a></div></div>
<div class="ttc" id="group__coreinit__context_html_ac660bd5ffef46cffbd71af31e664fdc1"><div class="ttname"><a href="group__coreinit__context.html#ac660bd5ffef46cffbd71af31e664fdc1">OSContext::spinLockCount</a></div><div class="ttdeci">uint16_t spinLockCount</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00034">context.h:34</a></div></div>
<div class="ttc" id="group__coreinit__context_html_a6ced3f4007bb60daf12191c058e55b8c"><div class="ttname"><a href="group__coreinit__context.html#a6ced3f4007bb60daf12191c058e55b8c">OSContext::lr</a></div><div class="ttdeci">uint32_t lr</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00026">context.h:26</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>