Go to the source code of this file.
Data Structures | |
struct | CrashScreen |
Macros | |
#define | GLYPH(x, y) (x + (y * 5)) |
Functions | |
INCLUDE_IMG ("crash_screen/font.png", gCrashScreenFont) | |
void | crash_screen_set_assert_info (const char *message) |
void | crash_screen_sleep (s32 ms) |
void | crash_screen_draw_rect (s32 x, s32 y, s32 width, s32 height) |
s32 | crash_screen_draw_glyph (s32 x, s32 y, s32 glyph) |
char * | crash_screen_copy_to_buf (char *dest, const char *src, size_t size) |
s32 | crash_screen_printf (s32 x, s32 y, const char *fmt,...) |
s32 | crash_screen_printf_proportional (s32 x, s32 y, const char *fmt,...) |
void | crash_screen_print_fpr (s32 x, s32 y, s32 regNum, void *addr) |
void | crash_screen_print_fpcsr (u32 value) |
void | crash_screen_draw (OSThread *faultedThread) |
OSThread * | crash_screen_get_faulted_thread (void) |
void | crash_screen_thread_entry (void *unused) |
void | crash_screen_set_draw_info (u16 *frameBufPtr, s16 width, s16 height) |
void | crash_screen_init (void) |
void | crash_screen_printf_with_bg (s16 x, s16 y, const char *fmt,...) |
Variables | |
BSS CrashScreen | gCrashScreen |
u8 | gCrashScreencharToGlyph [128] |
const char * | gFaultCauses [18] |
const char * | gFPCSRFaultCauses [6] |
char | crashScreenAssertMessage [0x100] = {0} |
struct CrashScreen |
#define GLYPH | ( | x, | |
y ) (x + (y * 5)) |
Definition at line 33 of file crash_screen.c.
Referenced by crash_screen_draw_glyph(), and crash_screen_init().
INCLUDE_IMG | ( | "crash_screen/font.png" | , |
gCrashScreenFont | ) |
void crash_screen_set_assert_info | ( | const char * | message | ) |
void crash_screen_sleep | ( | s32 | ms | ) |
Definition at line 72 of file crash_screen.c.
void crash_screen_draw_rect | ( | s32 | x, |
s32 | y, | ||
s32 | width, | ||
s32 | height ) |
Definition at line 82 of file crash_screen.c.
Referenced by crash_screen_draw(), and crash_screen_printf_with_bg().
s32 crash_screen_draw_glyph | ( | s32 | x, |
s32 | y, | ||
s32 | glyph ) |
Definition at line 107 of file crash_screen.c.
Referenced by crash_screen_printf(), crash_screen_printf_proportional(), and crash_screen_printf_with_bg().
char * crash_screen_copy_to_buf | ( | char * | dest, |
const char * | src, | ||
size_t | size ) |
Definition at line 186 of file crash_screen.c.
Referenced by crash_screen_printf(), crash_screen_printf_proportional(), and crash_screen_printf_with_bg().
s32 crash_screen_printf | ( | s32 | x, |
s32 | y, | ||
const char * | fmt, | ||
... ) |
Definition at line 192 of file crash_screen.c.
Referenced by crash_screen_draw(), crash_screen_print_fpcsr(), and crash_screen_print_fpr().
s32 crash_screen_printf_proportional | ( | s32 | x, |
s32 | y, | ||
const char * | fmt, | ||
... ) |
Definition at line 238 of file crash_screen.c.
Referenced by crash_screen_draw().
void crash_screen_print_fpr | ( | s32 | x, |
s32 | y, | ||
s32 | regNum, | ||
void * | addr ) |
Definition at line 283 of file crash_screen.c.
void crash_screen_print_fpcsr | ( | u32 | value | ) |
Definition at line 294 of file crash_screen.c.
void crash_screen_draw | ( | OSThread * | faultedThread | ) |
Definition at line 311 of file crash_screen.c.
Referenced by crash_screen_thread_entry().
OSThread * crash_screen_get_faulted_thread | ( | void | ) |
Definition at line 421 of file crash_screen.c.
Referenced by crash_screen_thread_entry().
void crash_screen_thread_entry | ( | void * | unused | ) |
Definition at line 435 of file crash_screen.c.
Referenced by crash_screen_init().
void crash_screen_set_draw_info | ( | u16 * | frameBufPtr, |
s16 | width, | ||
s16 | height ) |
void crash_screen_init | ( | void | ) |
Definition at line 459 of file crash_screen.c.
Referenced by boot_main().
void crash_screen_printf_with_bg | ( | s16 | x, |
s16 | y, | ||
const char * | fmt, | ||
... ) |
Definition at line 487 of file crash_screen.c.
BSS CrashScreen gCrashScreen |
Definition at line 19 of file crash_screen.c.
Referenced by crash_screen_draw(), crash_screen_draw_glyph(), crash_screen_draw_rect(), crash_screen_init(), crash_screen_set_draw_info(), and crash_screen_thread_entry().
u8 gCrashScreencharToGlyph[128] |
Definition at line 21 of file crash_screen.c.
Referenced by crash_screen_init(), crash_screen_printf(), crash_screen_printf_proportional(), and crash_screen_printf_with_bg().
const char* gFaultCauses[18] |
Definition at line 35 of file crash_screen.c.
Referenced by crash_screen_draw().
const char* gFPCSRFaultCauses[6] |
Definition at line 56 of file crash_screen.c.
Referenced by crash_screen_print_fpcsr().
char crashScreenAssertMessage[0x100] = {0} |
Definition at line 65 of file crash_screen.c.
Referenced by crash_screen_draw(), and crash_screen_set_assert_info().