OR1K support
 All Functions Typedefs Groups
Typedefs | Functions
Exception handling

Typedefs

typedef void(* or1k_exception_handler_fptr )(void)
 

Functions

void or1k_exception_handler_add (int id, or1k_exception_handler_fptr handler)
 

Detailed Description

Typedef Documentation

typedef void(* or1k_exception_handler_fptr)(void)

Function pointer to an exception handler function

Function Documentation

void or1k_exception_handler_add ( int  id,
or1k_exception_handler_fptr  handler 
)

Register exception handler

Register an exception handler for the given exception id. This handler is in the following then called when the exception occurs. You can thereby individually handle those exceptions.

Parameters
idException id
handlerHandler callback