1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>OSSwitchFiber</title>
10</head>
11
12<body>
13
14<h1>OSSwitchFiber</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/os.h&gt;
19
20int OSSwitchFiber(register u32 pc, register u32 newsp);
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<TH><STRONG><EM><CODE>pc</CODE></EM></STRONG></TH>
27<TD>Location from where the specified function starts to run.</TD>
28  </tr>
29  <tr>
30<TH><em><strong><code>newsp</code></strong></em>&nbsp;&nbsp;</TH>
31<TD>Pointer to new stack (location of the highest possible address value).</TD>
32  </tr>
33</TABLE>
34
35<h2>Return Values</h2>
36<p>The result of the function pointed by <SPAN class="argument">pc</SPAN>.</p>
37
38<H2>Description</H2>
39<P>Executes a function pointed to by <SPAN class="argument">pc</SPAN> using the new stack pointed to by <SPAN class="argument">pc</SPAN>. When the function returns, the old stack pointer is restored.</P>
40<P>If an argument needs to be passed to the function, use <a href="OSSwitchFiberEx.html"><CODE>OSSwitchFiberEx</CODE></a> instead.</P>
41
42<h2>See Also</h2>
43<P class="reference">
44<a href="OSSwitchFiberEx.html">OSSwitchFiberEx</a>
45</p>
46
47<H2>Revision History</H2>
48<P>
492006/08/23 Added description of <code>OSSwitchFiberEx</code>.<br>2006/03/01 Initial version.<br>
50</P>
51
52<hr><p>CONFIDENTIAL</p></body>
53</html>