RetroArch
Classes | Macros | Typedefs | Functions | Variables
system.c File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <malloc.h>
#include <sys/iosupport.h>
#include "asm.h"
#include "irq.h"
#include "exi.h"
#include "cache.h"
#include "video.h"
#include "system.h"
#include "sys_state.h"
#include "lwp_threads.h"
#include "lwp_priority.h"
#include "lwp_watchdog.h"
#include "lwp_wkspace.h"
#include "lwp_objmgr.h"
#include "lwp_config.h"
#include "libversion.h"
Include dependency graph for system.c:

Classes

struct  _sramcntrl
 
struct  _alarm_st
 
struct  _yay0header
 

Macros

#define SYSMEM1_SIZE   0x01800000
 
#define KERNEL_HEAP   (1*1024*1024)
 
#define DSPCR_DSPRESET   0x0800
 
#define DSPCR_DSPDMA   0x0200
 
#define DSPCR_DSPINTMSK   0x0100
 
#define DSPCR_DSPINT   0x0080
 
#define DSPCR_ARINTMSK   0x0040
 
#define DSPCR_ARINT   0x0020
 
#define DSPCR_AIINTMSK   0x0010
 
#define DSPCR_AIINT   0x0008
 
#define DSPCR_HALT   0x0004
 
#define DSPCR_PIINT   0x0002
 
#define DSPCR_RES   0x0001
 
#define LWP_OBJTYPE_SYSWD   7
 
#define LWP_CHECK_SYSWD(hndl)
 
#define _SHIFTL(v, s, w)   ((u32) (((u32)(v) & ((0x01 << (w)) - 1)) << (s)))
 
#define _SHIFTR(v, s, w)   ((u32)(((u32)(v) >> (s)) & ((0x01 << (w)) - 1)))
 

Typedefs

typedef struct _alarm_st alarm_st
 
typedef struct _yay0header yay0header
 

Functions

struct _sramcntrl ATTRIBUTE_ALIGN (32)
 
static void __RSWDefaultHandler ()
 
void __SYS_ReadROM (void *buf, u32 len, u32 offset)
 
voidSYS_AllocArena1MemLo (u32 size, u32 align)
 
static s32 __sram_sync (void)
 
static s32 __sram_writecallback (s32 chn, s32 dev)
 
static s32 __mem_onreset (s32 final)
 
void __lwp_thread_coreinit (void)
 
void __lwp_sysinit (void)
 
void __heap_init (void)
 
void __exception_init (void)
 
void __exception_closeall (void)
 
void __systemcall_init (void)
 
void __decrementer_init (void)
 
void __lwp_mutex_init (void)
 
void __lwp_cond_init (void)
 
void __lwp_mqbox_init (void)
 
void __lwp_sema_init (void)
 
void __exi_init (void)
 
void __si_init (void)
 
void __irq_init (void)
 
void __lwp_start_multitasking (void)
 
void __timesystem_init (void)
 
void __memlock_init (void)
 
void __libc_init (int)
 
void __libogc_malloc_lock (struct _reent *ptr)
 
void __libogc_malloc_unlock (struct _reent *ptr)
 
void __exception_console (void)
 
void __exception_printf (const char *str,...)
 
void __realmode (void *)
 
void __configMEM1_24Mb (void)
 
void __configMEM1_48Mb (void)
 
void __configMEM2_64Mb (void)
 
void __configMEM2_128Mb (void)
 
void __reset (u32 reset_code)
 
u32 __IPC_ClntInit (void)
 
u32 __PADDisableRecalibration (s32 disable)
 
void __console_init_ex (void *conbuffer, int tgt_xstart, int tgt_ystart, int tgt_stride, int con_xres, int con_yres, int con_stride)
 
int clock_gettime (struct timespec *tp)
 
void timespec_subtract (const struct timespec *tp_start, const struct timespec *tp_end, struct timespec *result)
 
int __libogc_lock_init (int *lock, int recursive)
 
int __libogc_lock_close (int *lock)
 
int __libogc_lock_release (int *lock)
 
int __libogc_lock_acquire (int *lock)
 
void __libogc_exit (int status)
 
void__libogc_sbrk_r (struct _reent *ptr, ptrdiff_t incr)
 
int __libogc_gettod_r (struct _reent *ptr, struct timeval *tp, struct timezone *tz)
 
static __inline__ alarm_st__lwp_syswd_open (syswd_t wd)
 
static __inline__ void __lwp_syswd_free (alarm_st *alarm)
 
static bool __stub_found ()
 
void __reload ()
 
static void __init_syscall_array ()
 
static alarm_st__lwp_syswd_allocate ()
 
static void __sys_alarmhandler (void *arg)
 
static s32 __call_resetfuncs (s32 final)
 
static void __MEMInterruptHandler ()
 
void__attribute__ ((weak))
 
static void __memprotect_init ()
 
static __inline__ u32 __get_fontsize (void *buffer)
 
static u32 __read_rom (void *buf, u32 len, u32 offset)
 
static u32 __getrtc (u32 *gctime)
 
static u32 __sram_read (void *buffer)
 
static u32 __sram_write (void *buffer, u32 loc, u32 len)
 
void __sram_init ()
 
static void DisableWriteGatherPipe ()
 
static void __buildchecksum (u16 *buffer, u16 *c1, u16 *c2)
 
static void__locksram (u32 loc)
 
static u32 __unlocksram (u32 write, u32 loc)
 
static u32 __read_font (void *buffer)
 
static void __expand_font (const u8 *src, u8 *dest)
 
static void __dsp_bootstrap ()
 
static void __dsp_shutdown ()
 
static void decode_szp (void *src, void *dest)
 
syssram__SYS_LockSram ()
 
syssramex__SYS_LockSramEx ()
 
u32 __SYS_UnlockSram (u32 write)
 
u32 __SYS_UnlockSramEx (u32 write)
 
u32 __SYS_SyncSram ()
 
u32 __SYS_GetRTC (u32 *gctime)
 
void __SYS_SetTime (s64 time)
 
s64 __SYS_GetSystemTime ()
 
void __SYS_SetBootTime ()
 
u32 __SYS_LoadFont (void *src, void *dest)
 
void _V_EXPORTNAME (void)
 
void __SYS_InitCallbacks ()
 
void SYS_Init ()
 
void SYS_PreMain ()
 
u32 SYS_ResetButtonDown ()
 
void SYS_RegisterResetFunc (sys_resetinfo *info)
 
void SYS_UnregisterResetFunc (sys_resetinfo *info)
 
void SYS_SetArena1Lo (void *newLo)
 
voidSYS_GetArena1Lo ()
 
void SYS_SetArena1Hi (void *newHi)
 
voidSYS_GetArena1Hi ()
 
u32 SYS_GetArena1Size ()
 
void SYS_ProtectRange (u32 chan, void *addr, u32 bytes, u32 cntrl)
 
voidSYS_AllocateFramebuffer (GXRModeObj *rmode)
 Allocate cacheline aligned memory for the external framebuffer based on the rendermode object. More...
 
u32 SYS_GetFontEncoding ()
 
u32 SYS_InitFont (sys_fontheader *font_data)
 
void SYS_GetFontTexture (s32 c, void **image, s32 *xpos, s32 *ypos, s32 *width)
 
void SYS_GetFontTexel (s32 c, void *image, s32 pos, s32 stride, s32 *width)
 
s32 SYS_CreateAlarm (syswd_t *thealarm)
 Create/initialize sysalarm structure. More...
 
s32 SYS_SetAlarm (syswd_t thealarm, const struct timespec *tp, alarmcallback cb, void *cbarg)
 
s32 SYS_SetPeriodicAlarm (syswd_t thealarm, const struct timespec *tp_start, const struct timespec *tp_period, alarmcallback cb, void *cbarg)
 
s32 SYS_RemoveAlarm (syswd_t thealarm)
 Remove the given alarm context from the list of contexts and destroy it. More...
 
s32 SYS_CancelAlarm (syswd_t thealarm)
 Cancel the alarm, but do not remove from the list of contexts. More...
 
resetcallback SYS_SetResetCallback (resetcallback cb)
 
void SYS_StartPMC (u32 mcr0val, u32 mcr1val)
 
void SYS_StopPMC ()
 
void SYS_ResetPMC ()
 
void SYS_DumpPMC ()
 
void SYS_SetWirelessID (u32 chan, u32 id)
 
u32 SYS_GetWirelessID (u32 chan)
 
u64 SYS_Time ()
 

Variables

u8 srambuf [64]
 
u32 offset
 
s32 enabled
 
s32 locked
 
s32 sync
 
static u16 sys_fontenc = 0xffff
 
static u32 sys_fontcharsinsheet = 0
 
static u8sys_fontwidthtab = NULL
 
static u8sys_fontimage = NULL
 
static sys_fontheadersys_fontdata = NULL
 
static lwp_queue sys_reset_func_queue
 
static u32 system_initialized = 0
 
static lwp_objinfo sys_alarm_objects
 
static void__sysarena1lo = NULL
 
static void__sysarena1hi = NULL
 
static resetcallback __RSWCallback = NULL
 
static vu16 *const _viReg = (u16*)0xCC002000
 
static vu32 *const _piReg = (u32*)0xCC003000
 
static vu16 *const _memReg = (u16*)0xCC004000
 
static vu16 *const _dspReg = (u16*)0xCC005000
 
u8 __gxregs []
 
u8 __text_start []
 
u8 __isIPL []
 
u8 __Arena1Lo []
 
u8 __Arena1Hi []
 
u8__argvArena1Lo = (u8*)0xdeadbeef
 
static u32 __sys_inIPL = (u32)__isIPL
 
static u32 _dsp_initcode []
 
static sys_resetinfo mem_resetinfo
 
static const char * __sys_versiondate
 
static const char * __sys_versionbuild
 
static void(* reload )() = (void(*)())0x80001800
 

Macro Definition Documentation

◆ _SHIFTL

#define _SHIFTL (   v,
  s,
  w 
)    ((u32) (((u32)(v) & ((0x01 << (w)) - 1)) << (s)))

◆ _SHIFTR

#define _SHIFTR (   v,
  s,
  w 
)    ((u32)(((u32)(v) >> (s)) & ((0x01 << (w)) - 1)))

◆ DSPCR_AIINT

#define DSPCR_AIINT   0x0008

◆ DSPCR_AIINTMSK

#define DSPCR_AIINTMSK   0x0010

◆ DSPCR_ARINT

#define DSPCR_ARINT   0x0020

◆ DSPCR_ARINTMSK

#define DSPCR_ARINTMSK   0x0040

◆ DSPCR_DSPDMA

#define DSPCR_DSPDMA   0x0200

◆ DSPCR_DSPINT

#define DSPCR_DSPINT   0x0080

◆ DSPCR_DSPINTMSK

#define DSPCR_DSPINTMSK   0x0100

◆ DSPCR_DSPRESET

#define DSPCR_DSPRESET   0x0800

◆ DSPCR_HALT

#define DSPCR_HALT   0x0004

◆ DSPCR_PIINT

#define DSPCR_PIINT   0x0002

◆ DSPCR_RES

#define DSPCR_RES   0x0001

◆ KERNEL_HEAP

#define KERNEL_HEAP   (1*1024*1024)

◆ LWP_CHECK_SYSWD

#define LWP_CHECK_SYSWD (   hndl)
Value:
{ \
if(((hndl)==SYS_WD_NULL) || (LWP_OBJTYPE(hndl)!=LWP_OBJTYPE_SYSWD)) \
return NULL; \
}
#define LWP_OBJTYPE(id)
Definition: lwp_objmgr.h:9
#define NULL
Pointer to 0.
Definition: gctypes.h:65
#define SYS_WD_NULL
Definition: system.h:50
#define LWP_OBJTYPE_SYSWD
Definition: system.c:78

◆ LWP_OBJTYPE_SYSWD

#define LWP_OBJTYPE_SYSWD   7

◆ SYSMEM1_SIZE

#define SYSMEM1_SIZE   0x01800000

Typedef Documentation

◆ alarm_st

typedef struct _alarm_st alarm_st

◆ yay0header

typedef struct _yay0header yay0header

Function Documentation

◆ __attribute__()

void* __attribute__ ( (weak)  )
Here is the call graph for this function:

◆ __buildchecksum()

static void __buildchecksum ( u16 buffer,
u16 c1,
u16 c2 
)
static
Here is the caller graph for this function:

◆ __call_resetfuncs()

static s32 __call_resetfuncs ( s32  final)
static
Here is the call graph for this function:

◆ __configMEM1_24Mb()

void __configMEM1_24Mb ( void  )

◆ __configMEM1_48Mb()

void __configMEM1_48Mb ( void  )

◆ __configMEM2_128Mb()

void __configMEM2_128Mb ( void  )

◆ __configMEM2_64Mb()

void __configMEM2_64Mb ( void  )

◆ __console_init_ex()

void __console_init_ex ( void conbuffer,
int  tgt_xstart,
int  tgt_ystart,
int  tgt_stride,
int  con_xres,
int  con_yres,
int  con_stride 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __decrementer_init()

void __decrementer_init ( void  )
Here is the caller graph for this function:

◆ __dsp_bootstrap()

static void __dsp_bootstrap ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __dsp_shutdown()

static void __dsp_shutdown ( )
static
Here is the call graph for this function:

◆ __exception_closeall()

void __exception_closeall ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __exception_console()

void __exception_console ( void  )

◆ __exception_init()

void __exception_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __exception_printf()

void __exception_printf ( const char *  str,
  ... 
)

◆ __exi_init()

void __exi_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __expand_font()

static void __expand_font ( const u8 src,
u8 dest 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __get_fontsize()

static __inline__ u32 __get_fontsize ( void buffer)
static
Here is the caller graph for this function:

◆ __getrtc()

static u32 __getrtc ( u32 gctime)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __heap_init()

void __heap_init ( void  )

◆ __init_syscall_array()

static void __init_syscall_array ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __IPC_ClntInit()

u32 __IPC_ClntInit ( void  )
Here is the caller graph for this function:

◆ __irq_init()

void __irq_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __libc_init()

void __libc_init ( int  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __libogc_exit()

void __libogc_exit ( int  status)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __libogc_gettod_r()

int __libogc_gettod_r ( struct _reent *  ptr,
struct timeval tp,
struct timezone *  tz 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __libogc_lock_acquire()

int __libogc_lock_acquire ( int *  lock)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __libogc_lock_close()

int __libogc_lock_close ( int *  lock)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __libogc_lock_init()

int __libogc_lock_init ( int *  lock,
int  recursive 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __libogc_lock_release()

int __libogc_lock_release ( int *  lock)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __libogc_malloc_lock()

void __libogc_malloc_lock ( struct _reent *  ptr)
Here is the caller graph for this function:

◆ __libogc_malloc_unlock()

void __libogc_malloc_unlock ( struct _reent *  ptr)
Here is the caller graph for this function:

◆ __libogc_sbrk_r()

void* __libogc_sbrk_r ( struct _reent *  ptr,
ptrdiff_t  incr 
)
Here is the caller graph for this function:

◆ __locksram()

static void* __locksram ( u32  loc)
static
Here is the caller graph for this function:

◆ __lwp_cond_init()

void __lwp_cond_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_mqbox_init()

void __lwp_mqbox_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_mutex_init()

void __lwp_mutex_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_sema_init()

void __lwp_sema_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_start_multitasking()

void __lwp_start_multitasking ( void  )

◆ __lwp_sysinit()

void __lwp_sysinit ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_syswd_allocate()

static alarm_st* __lwp_syswd_allocate ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_syswd_free()

static __inline__ void __lwp_syswd_free ( alarm_st alarm)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_syswd_open()

static __inline__ alarm_st* __lwp_syswd_open ( syswd_t  wd)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_thread_coreinit()

void __lwp_thread_coreinit ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __mem_onreset()

static s32 __mem_onreset ( s32  final)
static
Here is the call graph for this function:

◆ __MEMInterruptHandler()

static void __MEMInterruptHandler ( )
static
Here is the caller graph for this function:

◆ __memlock_init()

void __memlock_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __memprotect_init()

static void __memprotect_init ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __PADDisableRecalibration()

u32 __PADDisableRecalibration ( s32  disable)

◆ __read_font()

static u32 __read_font ( void buffer)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __read_rom()

static u32 __read_rom ( void buf,
u32  len,
u32  offset 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __realmode()

void __realmode ( void )

◆ __reload()

void __reload ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __reset()

void __reset ( u32  reset_code)

◆ __RSWDefaultHandler()

static void __RSWDefaultHandler ( )
static
Here is the caller graph for this function:

◆ __si_init()

void __si_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __sram_init()

void __sram_init ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __sram_read()

static u32 __sram_read ( void buffer)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __sram_sync()

static s32 __sram_sync ( void  )
static
Here is the caller graph for this function:

◆ __sram_write()

static u32 __sram_write ( void buffer,
u32  loc,
u32  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __sram_writecallback()

static s32 __sram_writecallback ( s32  chn,
s32  dev 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __stub_found()

static bool __stub_found ( )
static
Here is the caller graph for this function:

◆ __sys_alarmhandler()

static void __sys_alarmhandler ( void arg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_GetRTC()

u32 __SYS_GetRTC ( u32 gctime)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_GetSystemTime()

s64 __SYS_GetSystemTime ( )
Here is the call graph for this function:

◆ __SYS_InitCallbacks()

void __SYS_InitCallbacks ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_LoadFont()

u32 __SYS_LoadFont ( void src,
void dest 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_LockSram()

syssram* __SYS_LockSram ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_LockSramEx()

syssramex* __SYS_LockSramEx ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_ReadROM()

void __SYS_ReadROM ( void buf,
u32  len,
u32  offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_SetBootTime()

void __SYS_SetBootTime ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_SetTime()

void __SYS_SetTime ( s64  time)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_SyncSram()

u32 __SYS_SyncSram ( )
Here is the call graph for this function:

◆ __SYS_UnlockSram()

u32 __SYS_UnlockSram ( u32  write)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_UnlockSramEx()

u32 __SYS_UnlockSramEx ( u32  write)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __systemcall_init()

void __systemcall_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __timesystem_init()

void __timesystem_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __unlocksram()

static u32 __unlocksram ( u32  write,
u32  loc 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _V_EXPORTNAME()

void _V_EXPORTNAME ( void  )
Here is the caller graph for this function:

◆ ATTRIBUTE_ALIGN()

struct _sramcntrl ATTRIBUTE_ALIGN ( 32  )

◆ clock_gettime()

int clock_gettime ( struct timespec *  tp)
Here is the call graph for this function:

◆ decode_szp()

static void decode_szp ( void src,
void dest 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DisableWriteGatherPipe()

static void DisableWriteGatherPipe ( )
static
Here is the caller graph for this function:

◆ SYS_AllocArena1MemLo()

void * SYS_AllocArena1MemLo ( u32  size,
u32  align 
)
Here is the call graph for this function:

◆ SYS_AllocateFramebuffer()

void* SYS_AllocateFramebuffer ( GXRModeObj rmode)

Allocate cacheline aligned memory for the external framebuffer based on the rendermode object.

Parameters
[in]rmodepointer to the video/render mode configuration
Returns
pointer to the framebuffer's startaddress. NOTE: Address returned is aligned to a 32byte boundery!
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_CancelAlarm()

s32 SYS_CancelAlarm ( syswd_t  thealarm)

Cancel the alarm, but do not remove from the list of contexts.

Parameters
[in]thealarmidentifier to the alram context to be canceled
Returns
0 on succuess, non-zero on error
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_CreateAlarm()

s32 SYS_CreateAlarm ( syswd_t thealarm)

Create/initialize sysalarm structure.

Parameters
[in]thealarmpointer to the handle to store the created alarm context identifier
Returns
0 on succuess, non-zero on error
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_DumpPMC()

void SYS_DumpPMC ( )

◆ SYS_GetArena1Hi()

void* SYS_GetArena1Hi ( )

◆ SYS_GetArena1Lo()

void* SYS_GetArena1Lo ( )
Here is the caller graph for this function:

◆ SYS_GetArena1Size()

u32 SYS_GetArena1Size ( )
Here is the caller graph for this function:

◆ SYS_GetFontEncoding()

u32 SYS_GetFontEncoding ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_GetFontTexel()

void SYS_GetFontTexel ( s32  c,
void image,
s32  pos,
s32  stride,
s32 width 
)

◆ SYS_GetFontTexture()

void SYS_GetFontTexture ( s32  c,
void **  image,
s32 xpos,
s32 ypos,
s32 width 
)

◆ SYS_GetWirelessID()

u32 SYS_GetWirelessID ( u32  chan)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_Init()

void SYS_Init ( )
Deprecated:
Performs basic system initialization such as EXI init etc. This function is called from within the crt0 startup code.
Returns
none
Here is the call graph for this function:

◆ SYS_InitFont()

u32 SYS_InitFont ( sys_fontheader font_data)
Here is the call graph for this function:

◆ SYS_PreMain()

void SYS_PreMain ( )

◆ SYS_ProtectRange()

void SYS_ProtectRange ( u32  chan,
void addr,
u32  bytes,
u32  cntrl 
)
Here is the call graph for this function:

◆ SYS_RegisterResetFunc()

void SYS_RegisterResetFunc ( sys_resetinfo info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_RemoveAlarm()

s32 SYS_RemoveAlarm ( syswd_t  thealarm)

Remove the given alarm context from the list of contexts and destroy it.

Parameters
[in]thealarmidentifier to the alarm context to be removed and destroyed
Returns
0 on succuess, non-zero on error
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_ResetButtonDown()

u32 SYS_ResetButtonDown ( )
Here is the caller graph for this function:

◆ SYS_ResetPMC()

void SYS_ResetPMC ( )

◆ SYS_SetAlarm()

s32 SYS_SetAlarm ( syswd_t  thealarm,
const struct timespec *  tp,
alarmcallback  cb,
void cbarg 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_SetArena1Hi()

void SYS_SetArena1Hi ( void newHi)

◆ SYS_SetArena1Lo()

void SYS_SetArena1Lo ( void newLo)
Here is the caller graph for this function:

◆ SYS_SetPeriodicAlarm()

s32 SYS_SetPeriodicAlarm ( syswd_t  thealarm,
const struct timespec *  tp_start,
const struct timespec *  tp_period,
alarmcallback  cb,
void cbarg 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_SetResetCallback()

resetcallback SYS_SetResetCallback ( resetcallback  cb)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_SetWirelessID()

void SYS_SetWirelessID ( u32  chan,
u32  id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_StartPMC()

void SYS_StartPMC ( u32  mcr0val,
u32  mcr1val 
)

◆ SYS_StopPMC()

void SYS_StopPMC ( )

◆ SYS_Time()

u64 SYS_Time ( )
Here is the call graph for this function:

◆ SYS_UnregisterResetFunc()

void SYS_UnregisterResetFunc ( sys_resetinfo info)
Here is the call graph for this function:

◆ timespec_subtract()

void timespec_subtract ( const struct timespec *  tp_start,
const struct timespec *  tp_end,
struct timespec *  result 
)

Variable Documentation

◆ __Arena1Hi

u8 __Arena1Hi[]

◆ __Arena1Lo

u8 __Arena1Lo[]

◆ __argvArena1Lo

u8* __argvArena1Lo = (u8*)0xdeadbeef

◆ __gxregs

u8 __gxregs[]

◆ __isIPL

u8 __isIPL[]

◆ __RSWCallback

resetcallback __RSWCallback = NULL
static

◆ __sys_inIPL

u32 __sys_inIPL = (u32)__isIPL
static

◆ __sys_versionbuild

const char* __sys_versionbuild
static

◆ __sys_versiondate

const char* __sys_versiondate
static

◆ __sysarena1hi

void* __sysarena1hi = NULL
static

◆ __sysarena1lo

void* __sysarena1lo = NULL
static

◆ __text_start

u8 __text_start[]

◆ _dsp_initcode

u32 _dsp_initcode[]
static
Initial value:
=
{
0x029F0010,0x029F0033,0x029F0034,0x029F0035,
0x029F0036,0x029F0037,0x029F0038,0x029F0039,
0x12061203,0x12041205,0x00808000,0x0088FFFF,
0x00841000,0x0064001D,0x02180000,0x81001C1E,
0x00441B1E,0x00840800,0x00640027,0x191E0000,
0x00DEFFFC,0x02A08000,0x029C0028,0x16FC0054,
0x16FD4348,0x002102FF,0x02FF02FF,0x02FF02FF,
0x02FF02FF,0x00000000,0x00000000,0x00000000
}

◆ _dspReg

vu16* const _dspReg = (u16*)0xCC005000
static

◆ _memReg

vu16* const _memReg = (u16*)0xCC004000
static

◆ _piReg

vu32* const _piReg = (u32*)0xCC003000
static

◆ _viReg

vu16* const _viReg = (u16*)0xCC002000
static

◆ enabled

◆ locked

s32 locked

◆ mem_resetinfo

sys_resetinfo mem_resetinfo
static
Initial value:
= {
{},
127
}
static s32 __mem_onreset(s32 final)
Definition: system.c:320

◆ offset

◆ reload

void(* reload) () = (void(*)())0x80001800
static

◆ srambuf

u8 srambuf[64]

◆ sync

s32 sync

◆ sys_alarm_objects

lwp_objinfo sys_alarm_objects
static

◆ sys_fontcharsinsheet

u32 sys_fontcharsinsheet = 0
static

◆ sys_fontdata

sys_fontheader* sys_fontdata = NULL
static

◆ sys_fontenc

u16 sys_fontenc = 0xffff
static

◆ sys_fontimage

u8* sys_fontimage = NULL
static

◆ sys_fontwidthtab

u8* sys_fontwidthtab = NULL
static

◆ sys_reset_func_queue

lwp_queue sys_reset_func_queue
static

◆ system_initialized

u32 system_initialized = 0
static