From 11ff692fbf346f6f4895f32717a446483cc3a3fb Mon Sep 17 00:00:00 2001 From: James Benton Date: Sun, 1 Jul 2018 16:24:51 +0100 Subject: [PATCH] coreinit: Add more OSContext related functions. --- include/coreinit/context.h | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/include/coreinit/context.h b/include/coreinit/context.h index 42f694a5..99601438 100644 --- a/include/coreinit/context.h +++ b/include/coreinit/context.h @@ -1,6 +1,13 @@ #pragma once #include +/** + * \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 }