libdragon
Functions | Variables
exception.c File Reference

Exception Handler. More...

#include "exception.h"
#include <string.h>

Functions

void register_exception_handler (void(*cb)(exception_t *))
 Register an exception handler to handle exceptions.
static const char * __get_exception_name (uint32_t etype)
 Fetch the string name of the exception.
static void __fetch_regs (exception_t *e, int32_t type)
 Fetch relevant registers.
void __onCriticalException ()
 Respond to a critical exception.
void __onResetException ()
 Respond to a reset exception.

Variables

static void(* __exception_handler )(exception_t *) = NULL
 Exception handler currently registered with exception system.
const unsigned char * __baseRegAddr
 Base register offset as defined by the interrupt controller.

Detailed Description

Exception Handler.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines