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 17<h2>C Specification</h2> 18<dl> 19<dd><pre><code>#include <revolution/os.h></code></pre></dd> 20<dd><pre><code>int OSSwitchFiber (register u32 pc, register u32 newsp);</code></pre></dd> 21</dl> 22 23<h2>Arguments</h2> 24<TABLE border="1" cellpadding="3" cellspacing="0.1"> 25 <tr> 26<TD valign="top" width="120" bgcolor="#ffffe8"><i><code><em><B><STRONG><EM><CODE>pc</CODE></EM></STRONG></B></em></code></i></TD> 27<TD width="520">Location from where the specified function starts to run.</TD> 28 </tr> 29 <tr> 30<TD valign="top" width="120" bgcolor="#ffffe8"><i><code><em><B><STRONG><EM><CODE>newsp</CODE></EM></STRONG></B></em></code></i></TD> 31<TD width="520">Pointer to new stack (location of the highest possible address value).</TD> 32 </tr> 33</TABLE> 34<h2>Return Values</h2> 35 36<p>Result of the function that <STRONG><EM><CODE>pc</CODE></EM></STRONG> points to.</p> 37<H2>Description</H2> 38<P>Executes a function specified by <STRONG><EM><CODE>pc</CODE></EM></STRONG> using the new stack specified by <STRONG><EM><CODE>newsp</CODE></EM></STRONG>. When the function returns, the old stack pointer is restored.</P> 39 40 41 42<h2>See Also</h2> 43<H2>Revision History</H2> 44<P>03/01/2006 Initial version.</P> 45</body> 46</html>