void fluke_thread_set_handlers(fluke_thread_t *cur_thread, oskit_addr_t *trap_handler, oskit_addr_t *interrupt_handler, oskit_addr_t *client_alert_handler, oskit_addr_t *server_alert_handler);
Returns the exception handlers currently set via a previous call to fluke_thread_set_handlers.The parameters are pointers to locations that are filled in with the addresses of the exception handling functions. A zero parameter can be passed if the value of a particular handler is not needed.
- cur_thread
- A pointer to the thread object representing the current thread, e.g. as returned by fluke_thread_self.
- trap_handler
- A pointer to a location to be filled with the virtual address of the trap handler routine in effect or zero if not desired.
- interrupt_handler
- A pointer to a location to be filled with the virtual address of the interrupt handler routine in effect. or zero if not desired.
- client_alert_handler
- A pointer to a location to be filled with the virtual address of the client-side alert handler routine in effect or zero if not desired.
- server_alert_handler
- A pointer to a location to be filled with the virtual address of the server-side alert handler routine in effect or zero if not desired.
If any of the following errors is detected by the Fluke implementation, it causes the current thread to take a synchronous exception with one of the following codes. All of these have an implicit FLUKE_INSANITY_ prefix.
- NOT_CURRENT_THREAD
- Thread specified was not the current thread.
fluke_thread_set_handlers,