libdragon
Loading...
Searching...
No Matches
Macros | Enumerations | Functions | Variables
inspector.c File Reference

Macros

#define pack32(x16)   ((x16) | ((x16) << 16))
 Pack a 16-bit color into a 32-bit word.
 

Enumerations

enum  Mode { MODE_EXCEPTION , MODE_ASSERTION , MODE_CPP_EXCEPTION }
 The mode of the inspector (what caused it to be triggered).
 
enum  { XSTART = 48 , XEND = 640-48 , YSTART = 16 , YEND = 240-8-8 }
 

Functions

void __inspector_exception (exception_t *ex)
 Trigger the inspector for an exception.
 
void __inspector_assertion (const char *failedexpr, const char *msg, va_list args)
 Trigger the inspector for an assertion failure.
 
void __inspector_cppexception (const char *exctype, const char *what)
 Trigger the inspector for a C++ exception.
 
void __inspector_init (void)
 Register the inspector as a syscall handler (global constructor run before main).
 

Variables

const char * __mips_gpr [34]
 Names of the 34 MIPS general-purpose registers.
 
const char * __mips_fpreg [32]
 Names of the 32 MIPS floating-point registers.
 

Detailed Description

Author
Giovanni Bajo giova.nosp@m.nnib.nosp@m.ajo@g.nosp@m.mail.nosp@m..com

Function Documentation

◆ __inspector_exception()

void __inspector_exception ( exception_t ex)

Trigger the inspector for an exception.

Parameters
exPointer to the exception structure.

◆ __inspector_assertion()

void __inspector_assertion ( const char *  failedexpr,
const char *  msg,
va_list  args 
)

Trigger the inspector for an assertion failure.

Parameters
failedexprThe failed expression string.
msgThe assertion message.
argsVariable argument list for the message.

◆ __inspector_cppexception()

void __inspector_cppexception ( const char *  exctype,
const char *  what 
)

Trigger the inspector for a C++ exception.

Parameters
exctypeThe exception type string.
whatThe exception message.

Variable Documentation

◆ __mips_gpr

const char* __mips_gpr[34]
Initial value:
= {
"zr", "at", "v0", "v1", "a0", "a1", "a2", "a3",
"t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7",
"s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7",
"t8", "t9", "k0", "k1", "gp", "sp", "s8", "ra",
"lo", "hi"
}

Names of the 34 MIPS general-purpose registers.

◆ __mips_fpreg

const char* __mips_fpreg[32]
Initial value:
= {
"$f0", "$f1", "$f2", "$f3", "$f4", "$f5", "$f6", "$f7",
"$f8", "$f9", "$f10", "$f11", "$f12", "$f13", "$f14", "$f15",
"$f16", "$f17", "$f18", "$f19", "$f20", "$f21", "$f22", "$f23",
"$f24", "$f25", "$f26", "$f27", "$f28", "$f29", "$f30", "$f31"
}

Names of the 32 MIPS floating-point registers.