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

Data Structures

struct  OSExceptionChainInfo
 
struct  KernelInfo0
 
struct  KernelInfo6
 

Typedefs

typedef enum OSICICommand OSICICommand
 
typedef void(* OSExceptionCallbackExFn) (OSExceptionType exceptionType, OSContext *interruptedContext, OSContext *cbContext)
 
typedef void(* KernelTimerCallbackFn) (OSExceptionType exception, OSContext *interruptedContext, OSContext *currentContext)
 
typedef uint32_t KernelTimerHandle
 
typedef struct OSExceptionChainInfo OSExceptionChainInfo
 
typedef struct KernelInfo0 KernelInfo0
 
typedef struct KernelInfo6 KernelInfo6
 

Enumerations

enum  OSICICommand {
  OS_ICI_COMMAND_INVALID_IC_RANGE = 1 ,
  OS_ICI_COMMAND_RESCHEDULE_CORE = 2 ,
  OS_ICI_COMMAND_HALT_CORE = 3 ,
  OS_ICI_COMMAND_PROC_EXIT = 4 ,
  OS_ICI_COMMAND_SET_DABR = 5 ,
  OS_ICI_COMMAND_PROC_SCHED = 6 ,
  OS_ICI_COMMAND_FAST_BG_EXIT = 7 ,
  OS_ICI_COMMAND_IOP_SHELL_CORE_TRACE = 8 ,
  OS_ICI_COMMAND_SYSTEM_FATAL = 9 ,
  OS_ICI_COMMAND_SET_IABR = 10 ,
  OS_ICI_COMMAND_PANIC_0X15 = 0xB ,
  OS_ICI_COMMAND_PROC_KILL = 0xC ,
  OS_ICI_COMMAND_PROC_CRASH = 0xD ,
  OS_ICI_COMMAND_UNKNOWN = 0xE ,
  OS_ICI_COMMAND_OVERLAY_ARENA = 0xF
}
 

Functions

void __KernelSetUserModeExHandler (OSExceptionType exceptionType, OSExceptionChainInfo *chainInfo, OSExceptionChainInfo *prevChainInfo)
 
KernelTimerHandle __KernelAllocateTimer (KernelTimerCallbackFn, void *exceptionStack, OSContext *context)
 
uint32_t __KernelPrimeTimer (KernelTimerHandle handle, uint64_t startTimeInTicks, uint64_t intervalInTicks, uint32_t unknown)
 
void __KernelSendICI (OSICICommand cmd, void *arg1, uint32_t unknown1, uint32_t unknown2)
 
void __KernelGetInfo (uint32_t type, void *outBuffer, uint32_t outBufferSize, uint32_t core)
 
static void __KernelGetInfo0 (KernelInfo0 *outBuffer, uint32_t core)
 
static void __KernelGetInfo6 (KernelInfo6 *outBuffer, uint32_t core)
 

Detailed Description


Data Structure Documentation

◆ OSExceptionChainInfo

struct OSExceptionChainInfo

Definition at line 39 of file kernel.h.

Data Fields
OSExceptionCallbackExFn callback
void * stack
OSContext * context

◆ KernelInfo0

struct KernelInfo0

Definition at line 49 of file kernel.h.

Data Fields
int32_t upid
int32_t rampid
uint32_t appFlags
void * dataAreaStart
void * dataAreaEnd
void * physDataAreaStart
void * physDataAreaEnd
void * physAvailStart
void * physAvailEnd
void * physCodeGenStart
void * physCodeGenEnd
void * sdaBase
void * sda2Base
uint32_t systemHeapSize
void * stackEnd0
void * stackEnd1
void * stackEnd2
void * stackBase0
void * stackBase1
void * stackBase2
void * exceptionStackEnd0
void * exceptionStackEnd1
void * exceptionStackEnd2
void * exceptionStackBase0
void * exceptionStackBase1
void * exceptionStackBase2
void * lockedCacheBase0
void * lockedCacheBase1
void * lockedCacheBase2
struct CoreinitInfo coreinit
uint32_t unk0x9C
uint64_t titleId

◆ KernelInfo6

struct KernelInfo6

Definition at line 130 of file kernel.h.

Data Fields
uint64_t osTitleId
uint32_t unk0x08

Typedef Documentation

◆ OSICICommand

typedef enum OSICICommand OSICICommand

◆ OSExceptionCallbackExFn

typedef void(* OSExceptionCallbackExFn) (OSExceptionType exceptionType, OSContext *interruptedContext, OSContext *cbContext)

Definition at line 33 of file kernel.h.

◆ KernelTimerCallbackFn

typedef void(* KernelTimerCallbackFn) (OSExceptionType exception, OSContext *interruptedContext, OSContext *currentContext)

Definition at line 35 of file kernel.h.

◆ KernelTimerHandle

typedef uint32_t KernelTimerHandle

Definition at line 37 of file kernel.h.

◆ OSExceptionChainInfo

◆ KernelInfo0

typedef struct KernelInfo0 KernelInfo0

◆ KernelInfo6

typedef struct KernelInfo6 KernelInfo6

Enumeration Type Documentation

◆ OSICICommand

Enumerator
OS_ICI_COMMAND_INVALID_IC_RANGE 
OS_ICI_COMMAND_RESCHEDULE_CORE 
OS_ICI_COMMAND_HALT_CORE 
OS_ICI_COMMAND_PROC_EXIT 
OS_ICI_COMMAND_SET_DABR 
OS_ICI_COMMAND_PROC_SCHED 
OS_ICI_COMMAND_FAST_BG_EXIT 
OS_ICI_COMMAND_IOP_SHELL_CORE_TRACE 
OS_ICI_COMMAND_SYSTEM_FATAL 
OS_ICI_COMMAND_SET_IABR 
OS_ICI_COMMAND_PANIC_0X15 
OS_ICI_COMMAND_PROC_KILL 
OS_ICI_COMMAND_PROC_CRASH 
OS_ICI_COMMAND_UNKNOWN 
OS_ICI_COMMAND_OVERLAY_ARENA 

Definition at line 15 of file kernel.h.

Function Documentation

◆ __KernelSetUserModeExHandler()

void __KernelSetUserModeExHandler ( OSExceptionType  exceptionType,
OSExceptionChainInfo chainInfo,
OSExceptionChainInfo prevChainInfo 
)

◆ __KernelAllocateTimer()

KernelTimerHandle __KernelAllocateTimer ( KernelTimerCallbackFn  ,
void *  exceptionStack,
OSContext context 
)

◆ __KernelPrimeTimer()

uint32_t __KernelPrimeTimer ( KernelTimerHandle  handle,
uint64_t  startTimeInTicks,
uint64_t  intervalInTicks,
uint32_t  unknown 
)

◆ __KernelSendICI()

void __KernelSendICI ( OSICICommand  cmd,
void *  arg1,
uint32_t  unknown1,
uint32_t  unknown2 
)

◆ __KernelGetInfo()

void __KernelGetInfo ( uint32_t  type,
void *  outBuffer,
uint32_t  outBufferSize,
uint32_t  core 
)

◆ __KernelGetInfo0()

static void __KernelGetInfo0 ( KernelInfo0 outBuffer,
uint32_t  core 
)
inlinestatic

Definition at line 149 of file kernel.h.

◆ __KernelGetInfo6()

static void __KernelGetInfo6 ( KernelInfo6 outBuffer,
uint32_t  core 
)
inlinestatic

Definition at line 155 of file kernel.h.