OSSwitchFiber

Syntax

#include <revolution/os.h>

int OSSwitchFiber(register u32 pc, register u32 newsp);

Arguments

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 to by pc using the new stack pointed to by pc. When the function returns, the old stack pointer is restored.

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

See Also

OSSwitchFiberEx

Revision History

2006/08/23 Added description of OSSwitchFiberEx.
2006/03/01 Initial version.


CONFIDENTIAL