![]() |
RTEMS 6.1-rc7
|
PowerPC Exceptions API. More...
Go to the source code of this file.
Typedefs | |
typedef CPU_Exception_frame | BSP_Exception_frame |
typedef void(* | exception_handler_t) (BSP_Exception_frame *) |
Global exception handler type. | |
typedef uint8_t | ppc_exc_categories[LAST_VALID_EXC+1] |
Categorie set type. | |
typedef int(* | ppc_exc_handler_t) (BSP_Exception_frame *f, unsigned vector) |
High-level exception handler type. | |
typedef exception_handler_t | cpuExcHandlerType |
Enumerations | |
enum | ppc_exc_category { PPC_EXC_INVALID = 0 , PPC_EXC_ASYNC = 1 , PPC_EXC_CLASSIC = 2 , PPC_EXC_CLASSIC_ASYNC = PPC_EXC_CLASSIC | PPC_EXC_ASYNC , PPC_EXC_405_CRITICAL = 4 , PPC_EXC_405_CRITICAL_ASYNC = PPC_EXC_405_CRITICAL | PPC_EXC_ASYNC , PPC_EXC_BOOKE_CRITICAL = 6 , PPC_EXC_BOOKE_CRITICAL_ASYNC = PPC_EXC_BOOKE_CRITICAL | PPC_EXC_ASYNC , PPC_EXC_E500_MACHCHK = 8 , PPC_EXC_E500_MACHCHK_ASYNC = PPC_EXC_E500_MACHCHK | PPC_EXC_ASYNC , PPC_EXC_NAKED = 10 } |
Exception categories. More... | |
Functions | |
void | C_exception_handler (BSP_Exception_frame *excPtr) |
Default global exception handler. | |
void | BSP_printStackTrace (const BSP_Exception_frame *excPtr) |
void * | ppc_exc_vector_address (unsigned vector, void *vector_base) |
Returns the entry address of the vector. | |
const ppc_exc_categories * | ppc_exc_categories_for_cpu (ppc_cpu_id_t cpu) |
Returns the category set for a CPU of type cpu, or NULL if there is no category set available for this CPU. | |
ppc_exc_category | ppc_exc_category_for_vector (const ppc_exc_categories *categories, unsigned vector) |
Returns the category for the vector vector using the category set categories. | |
rtems_status_code | ppc_exc_make_prologue (unsigned vector, void *vector_base, ppc_exc_category category, uint32_t *prologue, size_t *prologue_size) |
Makes a minimal prologue for the vector vector with the category category. | |
void | ppc_exc_initialize_with_vector_base (uintptr_t interrupt_stack_begin, void *vector_base) |
Initializes the exception handling. | |
int | ppc_exc_handler_default (BSP_Exception_frame *f, unsigned int vector) |
Default high-level exception handler. | |
rtems_status_code | ppc_exc_set_handler (unsigned vector, ppc_exc_handler_t hdl) |
Set high-level exception handler. | |
ppc_exc_handler_t | ppc_exc_get_handler (unsigned vector) |
Returns the currently active high-level exception handler. | |
void | ppc_exc_wrapup (BSP_Exception_frame *f) |
int | ppc_exc_alignment_handler (BSP_Exception_frame *frame, unsigned excNum) |
Standard aligment handler. | |
Variables | |
uint32_t | ppc_exc_msr_bits |
Bits for MSR update. | |
uint32_t | ppc_exc_cache_wb_check |
Cache write back check flag. | |
ppc_exc_handler_t | ppc_exc_handler_table [LAST_VALID_EXC+1] |
High-level exception handler table. | |
exception_handler_t | globalExceptHdl |
Global exception handler. | |
uint32_t(* | ppc_exc_get_DAR )(void) |
Function for DAR access. | |
PowerPC Exceptions API.