coreinit: Add OSSwitchFiber{Ex} functions.

This commit is contained in:
James Benton 2018-07-01 16:25:03 +01:00
parent 11ff692fbf
commit 17a83000e0
3 changed files with 37 additions and 0 deletions

35
include/coreinit/fiber.h Normal file
View File

@ -0,0 +1,35 @@
#pragma once
#include <wut.h>
/**
* \defgroup coreinit_fiber Fiber
* \ingroup coreinit
*
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*OSFiberEntryFn)();
typedef void (*OSFiberExEntryFn)(uint32_t arg1, uint32_t arg2,
uint32_t arg3, uint32_t arg4);
int32_t
OSSwitchFiber(OSFiberEntryFn entry,
void *stack);
int32_t
OSSwitchFiberEx(uint32_t arg1,
uint32_t arg2,
uint32_t arg3,
uint32_t arg4,
OSFiberExEntryFn entry,
void *stack);
#ifdef __cplusplus
}
#endif
/** @} */

View File

@ -14,6 +14,7 @@
#include <coreinit/exit.h>
#include <coreinit/fastcondition.h>
#include <coreinit/fastmutex.h>
#include <coreinit/fiber.h>
#include <coreinit/filesystem.h>
#include <coreinit/foreground.h>
#include <coreinit/internal.h>

View File

@ -14,6 +14,7 @@
#include <coreinit/exit.h>
#include <coreinit/fastcondition.h>
#include <coreinit/fastmutex.h>
#include <coreinit/fiber.h>
#include <coreinit/filesystem.h>
#include <coreinit/foreground.h>
#include <coreinit/internal.h>