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>OSSwitchFiberEx</title> 10</head> 11 12<body> 13 14<h1>OSSwitchFiberEx</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/os.h> 19 20int OSSwitchFiberEx(register u32 arg0, 21 register u32 arg1, 22 register u32 arg2, 23 register u32 arg3, 24 register u32 pc, register u32 newsp); 25</pre></dd></dl> 26 27<h2>Arguments</h2> 28<TABLE class="arguments" border="1" > 29 <tr> 30<TH>arg0, ..., arg3</TH> 31<TD>Argument passed to the function specified by <SPAN class="argument">pc</SPAN>,</TD> 32 </tr> 33 <tr> 34<TH>pc</TH> 35<TD>Location from where the specified function starts to run.</TD> 36 </tr> 37 <tr> 38<TH>newsp</TH> 39<TD>Pointer to new stack (location of the highest possible address value).</TD> 40 </tr> 41</TABLE> 42 43<h2>Return Values</h2> 44<p>The result of the function indicated by <SPAN class="argument">pc</SPAN>.</p> 45 46<H2>Description</H2> 47<P>Executes the function indicated by <SPAN class="argument">pc</SPAN> using a new stack specified by <SPAN class="argument">newsp</SPAN>. When the function returns, the old stack pointer is restored.</P> 48<P>Unlike <a href="OSSwitchFiber.html"><CODE>OSSwitchFiber</CODE></a>, four arguments can be passed to the function specified by <SPAN class="argument">pc</SPAN>. The type of the specified function's arguments does not need to be <CODE>u32</CODE>, as long as it can be passed to registers (such as a pointer). Also, the number of arguments may be less than four.</P> 49 50<h2>See Also</h2> 51<P class="reference"> 52<a href="OSSwitchFiber.html">OSSwitchFiber</a> 53</p> 54 55<H2>Revision History</H2> 56<P> 572006/08/23 Initial version.<br> 58</P> 59 60<hr><p>CONFIDENTIAL</p></body> 61</html>