libdragon
Data Structures | Macros | Functions | Variables

Exception Handler. More...

Data Structures

struct  syscall_handler_entry_t
 Syscall exception handler entry. More...
 

Macros

#define MAX_SYSCALL_HANDLERS   4
 Maximum number of syscall handlers that can be registered.
 

Functions

exception_handler_t register_exception_handler (exception_handler_t cb)
 Register an exception handler to handle exceptions. More...
 
void __exception_dump_header (FILE *out, exception_t *ex)
 Dump a brief recap of the exception. More...
 
void __exception_dump_gpr (exception_t *ex, void(*cb)(void *arg, const char *regname, char *value), void *arg)
 Helper to dump the GPRs of an exception. More...
 
void __exception_dump_fpr (exception_t *ex, void(*cb)(void *arg, const char *regname, char *hexvalue, char *singlevalue, char *doublevalue), void *arg)
 Helper to dump the FPRs of an exception. More...
 
void exception_default_handler (exception_t *ex)
 Default exception handler. More...
 
void __onCriticalException (reg_block_t *regs)
 Respond to a critical exception.
 
void register_syscall_handler (syscall_handler_t handler, uint32_t first_code, uint32_t last_code)
 Register a handler that will be called when a syscall exception. More...
 
void __onSyscallException (reg_block_t *regs)
 Respond to a syscall exception. More...
 

Variables

volatile reg_block_t __baseRegAddr
 Base register offset as defined by the interrupt controller.
 

Detailed Description

Exception Handler.