cyg_exception_set_handler
Name: cyg_exception_set_handler ( ) - create a new exception handler
Synopsis:
void cyg_exception_set_handler
(
  cyg_code_t              exception_number, /* exception number          */
  cyg_exception_handler_t *new_handler,     /* pointer to new handler    */
  cyg_addrword_t          new_data,         /* new handler data argument */
  cyg_exception_handler_t **old_handler,    /* receives old handler      */
  cyg_addrword_t          *old_data         /* receives old data         */
)
Description: This creates a new exception handler and retrieves the old one at the same time. This is highly architecture dependent. The exception handler has the following prototype: void cyg_exception_handler_t (cyg_addrword_t data, cyg_code_t exception_number, cyg_addrword_t info).
Include: #include <cyg/kernel/kapi.h>
Returns: nothing
See Also: cyg_exception_clear_handler, cyg_exception_call_handler

cyg_exception_clear_handler
Name: cyg_exception_clear_handler ( ) - remove an exception handler
Synopsis:
void cyg_exception_clear_handler
(
  cyg_code_t exception_number /* exception handler to remove */
)
Description: This removes an exception handler from the system, i.e. "clears" the exception handler to the default handler.
Include: #include <cyg/kernel/kapi.h>
Returns: nothing
See Also: cyg_exception_set_handler, cyg_exception_call_handler

cyg_exception_call_handler
Name: cyg_exception_call_handler ( ) - invoke an exception handler
Synopsis:
void cyg_exception_call_handler
(
  cyg_handle_t   thread,           /* thread ID        */
  cyg_code_t     exception_number, /* exception number */
  cyg_addrword_t error_code        /* error code       */
)
Description: This invokes an exception handler with "error_code" being the info (the 3rd argument) of the exception handler.
Include: #include <cyg/kernel/kapi.h>
Returns: nothing
See Also: cyg_exception_set_handler, cyg_exception_clear_handler