/*---------------------------------------------------------------------------* Project: OS Context API File: OSContext.h Copyright (C) Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. *---------------------------------------------------------------------------*/ #ifndef __OSCONTEXT_H__ #define __OSCONTEXT_H__ #include #ifndef _ASSEMBLER #include #ifdef __cplusplus extern "C" { #endif u32 OSGetStackPointer ( void ); u32 OSSwitchStack ( u32 newsp ); int OSSwitchFiber ( u32 pc, u32 newsp ); int OSSwitchFiberEx ( u32 arg0, u32 arg1, u32 arg2, u32 arg3, u32 pc, u32 newsp ); void OSSetCurrentContext ( OSContext* context ); OSContext* OSGetCurrentContext ( void ); u32 OSSaveContext ( OSContext* context ); void OSLoadContext ( OSContext* context ); void OSClearContext ( OSContext* context ); void OSInitContext ( OSContext* context, u32 pc, u32 sp ); OSContext* OSGetCurrentFPUContext(void); void OSSetCurrentFPUContext(OSContext* context); void OSLoadFPUContext ( OSContext* context ); void OSSaveFPUContext ( OSContext* context ); void OSDumpContext ( OSContext* context ); #endif // _ASSEMBLER #ifdef __cplusplus } #endif #endif // __OSCONTEXT_H__