wut  1.0.0-alpha
Wii U Toolchain
Data Structures | Macros | Typedefs | Functions
Context

Data Structures

struct  OSContext
 

Macros

#define OS_CONTEXT_TAG   0x4F53436F6E747874ull
 

Typedefs

typedef struct OSContext OSContext
 

Functions

void 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)
 
OSContextOSGetCurrentContext ()
 
void OSSetCurrentContext (OSContext *context)
 
void * OSSwitchStack (void *stack)
 

Detailed Description


Data Structure Documentation

◆ OSContext

struct OSContext

Definition at line 19 of file context.h.

Data Fields
uint64_t tag Should always be set to the value OS_CONTEXT_TAG.
uint32_t gpr[32]
uint32_t cr
uint32_t lr
uint32_t ctr
uint32_t xer
uint32_t srr0
uint32_t srr1
uint32_t fpscr
double fpr[32]
uint16_t spinLockCount
uint16_t state
uint32_t gqr[8]
double psf[32]
uint64_t coretime[3]
uint64_t starttime
uint32_t error
uint32_t pmc1
uint32_t pmc2
uint32_t pmc3
uint32_t pmc4
uint32_t mmcr0
uint32_t mmcr1

Macro Definition Documentation

◆ OS_CONTEXT_TAG

#define OS_CONTEXT_TAG   0x4F53436F6E747874ull

Definition at line 17 of file context.h.

Typedef Documentation

◆ OSContext

typedef struct OSContext OSContext

Definition at line 15 of file context.h.

Function Documentation

◆ OSInitContext()

void OSInitContext ( OSContext context,
void *  entry,
void *  stack 
)

◆ OSDumpContext()

void OSDumpContext ( OSContext context)

◆ OSLoadContext()

void OSLoadContext ( OSContext context)

◆ OSSaveContext()

uint32_t OSSaveContext ( OSContext context)

◆ OSLoadFPUContext()

void OSLoadFPUContext ( OSContext context)

◆ OSSaveFPUContext()

void OSSaveFPUContext ( OSContext context)

◆ OSGetCurrentContext()

OSContext* OSGetCurrentContext ( )

◆ OSSetCurrentContext()

void OSSetCurrentContext ( OSContext context)

◆ OSSwitchStack()

void* OSSwitchStack ( void *  stack)