wut  v1.7.0
Wii U Toolchain
Data Structures | Macros | Typedefs | Enumerations | Functions
Context
Collaboration diagram for Context:

Data Structures

struct  OSContext
 

Macros

#define OS_CONTEXT_TAG   0x4F53436F6E747874ull
 

Typedefs

typedef uint16_t OSContextState
 A bitfield of enum OS_CONTEXT_STATE. More...
 
typedef struct OSContext OSContext
 

Enumerations

enum  OS_CONTEXT_STATE {
  OS_CONTEXT_STATE_OSCALLBACK = 1 << 3 ,
  OS_CONTEXT_STATE_USERMODE_SAVED = 1 << 4
}
 

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)
 
void __OSSetCurrentUserContext (OSContext *context)
 
void __OSSetAndLoadContext (OSContext *context)
 

Detailed Description


Data Structure Documentation

◆ OSContext

struct OSContext

Definition at line 27 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 dsisr
uint32_t dar
uint32_t fpscr
double fpr[32]
uint16_t spinLockCount
OSContextState state
uint32_t gqr[8]
uint32_t upir Current core index.
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 25 of file context.h.

Typedef Documentation

◆ OSContextState

typedef uint16_t OSContextState

A bitfield of enum OS_CONTEXT_STATE.

Definition at line 16 of file context.h.

◆ OSContext

typedef struct OSContext OSContext

Definition at line 16 of file context.h.

Enumeration Type Documentation

◆ OS_CONTEXT_STATE

Enumerator
OS_CONTEXT_STATE_OSCALLBACK 
OS_CONTEXT_STATE_USERMODE_SAVED 

Definition at line 18 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)

◆ __OSSetCurrentUserContext()

void __OSSetCurrentUserContext ( OSContext context)

◆ __OSSetAndLoadContext()

void __OSSetAndLoadContext ( OSContext context)