wut/group__coreinit__coroutine.html
2020-03-26 16:49:18 +11:00

306 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: Coroutines</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-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&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>
</div><!-- top -->
<!-- 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 class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Coroutines<div class="ingroups"><a class="el" href="group__coreinit.html">coreinit</a></div></div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structOSCoroutine"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a></td></tr>
<tr class="separator:structOSCoroutine"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga387b1e70ff9b2d2b0c0b1475d5ada848"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__coroutine.html#ga387b1e70ff9b2d2b0c0b1475d5ada848">OSCoroutine</a></td></tr>
<tr class="separator:ga387b1e70ff9b2d2b0c0b1475d5ada848"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gadde6ad1f52999e45276fc9bf8594a7e4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__coroutine.html#gadde6ad1f52999e45276fc9bf8594a7e4">OSInitCoroutine</a> (<a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a> *coroutine, void *entry, void *stack)</td></tr>
<tr class="separator:gadde6ad1f52999e45276fc9bf8594a7e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa5dd2485f556a423e612e2dbae6ac5d8"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__coroutine.html#gaa5dd2485f556a423e612e2dbae6ac5d8">OSLoadCoroutine</a> (<a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a> *coroutine, uint32_t result)</td></tr>
<tr class="separator:gaa5dd2485f556a423e612e2dbae6ac5d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga26b706e2053074b1229d57e4da92a634"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__coroutine.html#ga26b706e2053074b1229d57e4da92a634">OSSaveCoroutine</a> (<a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a> *coroutine)</td></tr>
<tr class="separator:ga26b706e2053074b1229d57e4da92a634"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaed21e6e0ceaca2804cd90a868bf5d014"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__coroutine.html#gaed21e6e0ceaca2804cd90a868bf5d014">OSSwitchCoroutine</a> (<a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a> *from, <a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a> *to)</td></tr>
<tr class="separator:gaed21e6e0ceaca2804cd90a868bf5d014"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structOSCoroutine" id="structOSCoroutine"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structOSCoroutine">&#9670;&nbsp;</a></span>OSCoroutine</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct OSCoroutine</td>
</tr>
</table>
</div><div class="memdoc">
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="coroutine_8h_source.html#l00016">16</a> of file <a class="el" href="coroutine_8h_source.html">coroutine.h</a>.</p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a id="a70f9babd8ab4d7cc5a02970ebd1171a6"></a>uint32_t</td>
<td class="fieldname">
nia</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a id="a8e23fd42bea24a908273ef614aea3550"></a>uint32_t</td>
<td class="fieldname">
cr</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a id="acb4c86e2c850093be5805fe97b066d17"></a>uint32_t</td>
<td class="fieldname">
ugqr1</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a id="ab5eb7a5f806ca442b197ae56b071471a"></a>uint32_t</td>
<td class="fieldname">
stack</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a id="aa2b7d2ccbb6e3442f07d56854055ec24"></a>uint32_t</td>
<td class="fieldname">
sda2Base</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a id="a81a0288b3df7b11a17e3fd301d6cd99d"></a>uint32_t</td>
<td class="fieldname">
sdaBase</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a id="a747f572c9cf8ccfc8c1cfcbf42d00fb3"></a>uint32_t</td>
<td class="fieldname">
gpr[18]</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a id="a00edc3febb6baa30619c05e7bce8b51a"></a>double</td>
<td class="fieldname">
fpr[18]</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a id="acf38eceea9a9b1cf5181500942a8854c"></a>double</td>
<td class="fieldname">
psr[18]</td>
<td class="fielddoc">
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="ga387b1e70ff9b2d2b0c0b1475d5ada848"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga387b1e70ff9b2d2b0c0b1475d5ada848">&#9670;&nbsp;</a></span>OSCoroutine</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a> <a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="coroutine_8h_source.html#l00014">14</a> of file <a class="el" href="coroutine_8h_source.html">coroutine.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gadde6ad1f52999e45276fc9bf8594a7e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadde6ad1f52999e45276fc9bf8594a7e4">&#9670;&nbsp;</a></span>OSInitCoroutine()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void OSInitCoroutine </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a> *&#160;</td>
<td class="paramname"><em>coroutine</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>entry</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>stack</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="gaa5dd2485f556a423e612e2dbae6ac5d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa5dd2485f556a423e612e2dbae6ac5d8">&#9670;&nbsp;</a></span>OSLoadCoroutine()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t OSLoadCoroutine </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a> *&#160;</td>
<td class="paramname"><em>coroutine</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>result</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ga26b706e2053074b1229d57e4da92a634"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga26b706e2053074b1229d57e4da92a634">&#9670;&nbsp;</a></span>OSSaveCoroutine()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t OSSaveCoroutine </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a> *&#160;</td>
<td class="paramname"><em>coroutine</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="gaed21e6e0ceaca2804cd90a868bf5d014"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaed21e6e0ceaca2804cd90a868bf5d014">&#9670;&nbsp;</a></span>OSSwitchCoroutine()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void OSSwitchCoroutine </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a> *&#160;</td>
<td class="paramname"><em>from</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__coreinit__coroutine.html#structOSCoroutine">OSCoroutine</a> *&#160;</td>
<td class="paramname"><em>to</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</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.17
</small></address>
</body>
</html>