OSSwitchFiber

Syntax

#include <cafe/os.h>

int OSSwitchFiber(u32 pc, u32 newsp);

Parameters

pc Location from where the specified function starts to run.
newsp Pointer to new stack (location of the highest possible address value).

Return Values

The result of the function pointed by pc.

Description

Executes a function pointed by pc using the new stack pointed by newsp. When the function returns, the old stack pointer is restored.

If an argument needs to be passed to the function, use OSSwitchFiberEx instead.

Do Not Call From

None.

See Also

OSSwitchFiberEx

Revision History

2013/05/08 Automated cleanup pass.
2012/07/31 Cleanup Pass
2010/08/30 Initial version.
2006/08/23 Added description of OSSwitchFiberEx.


CONFIDENTIAL