coreinit: Add more OSContext related functions.

This commit is contained in:
James Benton 2018-07-01 16:24:51 +01:00
parent d01de98da2
commit 11ff692fbf

View File

@ -1,6 +1,13 @@
#pragma once
#include <wut.h>
/**
* \defgroup coreinit_context Context
* \ingroup coreinit
*
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
@ -66,7 +73,33 @@ WUT_CHECK_OFFSET(OSContext, 0x31c, mmcr1);
WUT_CHECK_SIZE(OSContext, 0x320);
void
OSLoadContext(OSContext * context);
OSInitContext(OSContext *context,
void *entry,
void *stack);
void
OSDumpContext(OSContext *context);
void
OSLoadContext(OSContext *context);
uint32_t
OSSaveContext(OSContext *context);
void
OSLoadFPUContext(OSContext *context);
void
OSSaveFPUContext(OSContext *context);
OSContext *
OSGetCurrentContext();
void
OSSetCurrentContext(OSContext *context);
void *
OSSwitchStack(void *stack);
#ifdef __cplusplus
}