A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: ulk1643182117158
Ixiasoft
Visible to Intel only — GUID: ulk1643182117158
Ixiasoft
8.7.2. Registering an Instruction-Related Exception Handler
The HAL API function alt_instruction_exception_register() registers a single instruction-related exception handler. When you register an instruction-related exception handler, it replaces the default EBREAK.
alt_instruction_exception_register ( alt_exception_result( * handler) (alt_exception_cause cause, alt_u32 exception_ pc, alt_u32 bad_addr) );
The handler argument is a pointer to the instruction-related exception handler.
#include "sys/alt_exceptions.h"