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>OSSwitchStack</title>
10</head>
11
12<body>
13
14<h1>OSSwitchStack</h1>
15
16
17<h2>C Specification</h2>
18<dl>
19<dd><pre><code>#include &lt;revolution/os.h&gt;</code></pre></dd>
20<dd><pre><code>u32 OSSwitchStack(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><em><FONT face="Courier New"><STRONG><STRONG><EM><CODE>newsp</CODE></EM></STRONG></STRONG></FONT></em></i></TD>
27<TD width="520">Pointer to new stack address (the position of the highest possible address value).</TD>
28    </tr>
29</TABLE>
30<h2>Return Values</h2>
31
32<p>The old stack address.</p>
33<H2>Description</H2>
34<P>Switches the current stack pointer to <STRONG><EM><CODE>newsp</CODE></EM></STRONG>.</P>
35
36
37
38<h2>See Also</h2>
39<H2>Revision History</H2>
40<P>2006/03/01 Initial version.</p>
41<hr>
42<P>CONFIDENTIAL</p>
43</BODY>
44</HTML>