wut/coreinit_2context_8h_source.html

95 lines
22 KiB
HTML
Raw Normal View History

2019-04-22 10:21:17 +10:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2018-07-26 20:52:03 +10:00
<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"/>
2019-04-22 10:21:17 +10:00
<meta name="generator" content="Doxygen 1.8.15"/>
2018-07-26 20:52:03 +10:00
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2019-04-22 10:21:17 +10:00
<title>wut: /home/ash/src/wut/include/coreinit/context.h Source File</title>
2018-07-26 20:52:03 +10:00
<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
2019-04-22 10:21:17 +10:00
&#160;<span id="projectnumber">1.0.0-beta8</span>
2018-07-26 20:52:03 +10:00
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2019-04-22 10:21:17 +10:00
<!-- Generated by Doxygen 1.8.15 -->
2018-07-26 20:52:03 +10:00
<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">
2019-04-22 10:21:17 +10:00
<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#ga924296baf430a531adb5135a5cd54207">OSContext</a> <a class="code" href="group__coreinit__context.html#ga924296baf430a531adb5135a5cd54207">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#gad130c049fa7f1cc7287aac53b9365e59"> 19</a></span>&#160;<span class="keyword">struct </span><a class="code" href="group__coreinit__context.html#gad130c049fa7f1cc7287aac53b9365e59">WUT_ALIGNAS</a>(8) <a class="code" href="group__coreinit__context.html#ga924296baf430a531adb5135a5cd54207">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"> 22</span>&#160; uint64_t tag;</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"> 24</span>&#160; uint32_t gpr[32];</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; uint32_t cr;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; uint32_t lr;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; uint32_t ctr;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; uint32_t xer;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; uint32_t srr0;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; uint32_t srr1;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; uint32_t dsisr;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; uint32_t dar;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; WUT_UNKNOWN_BYTES(0xC);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; uint32_t fpscr;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keywordtype">double</span> fpr[32];</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; uint16_t spinLockCount;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; uint16_t state;</div><div class="line"><a name="l00038"></a><span class="lineno">
2018-07-26 20:52:03 +10:00
<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_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="wut_8h_html"><div class="ttname"><a href="wut_8h.html">wut.h</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_ga8cba61562a3df6b7803406633633eb4a"><div class="ttname"><a href="group__coreinit__context.html#ga8cba61562a3df6b7803406633633eb4a">OSSaveFPUContext</a></div><div class="ttdeci">void OSSaveFPUContext(OSContext *context)</div></div>
2019-04-22 10:21:17 +10:00
<div class="ttc" id="group__coreinit__context_html_gad130c049fa7f1cc7287aac53b9365e59"><div class="ttname"><a href="group__coreinit__context.html#gad130c049fa7f1cc7287aac53b9365e59">WUT_ALIGNAS</a></div><div class="ttdeci">struct WUT_ALIGNAS(8) OSContext</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_ga924296baf430a531adb5135a5cd54207"><div class="ttname"><a href="group__coreinit__context.html#ga924296baf430a531adb5135a5cd54207">OSContext</a></div><div class="ttdeci">struct OSContext OSContext</div><div class="ttdef"><b>Definition:</b> <a href="coreinit_2context_8h_source.html#l00015">context.h:15</a></div></div>
2018-07-26 20:52:03 +10:00
<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_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_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><!-- 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"/>
2019-04-22 10:21:17 +10:00
</a> 1.8.15
2018-07-26 20:52:03 +10:00
</small></address>
</body>
</html>