Specifications
• alt_irq_cpu_enable_interrupts () on page 14-37
• alt_irq_disable() on page 14-36
• alt_irq_disable_all() on page 14-38
• alt_irq_enable() on page 14-39
• alt_irq_enable_all() on page 14-39
• alt_irq_enabled() on page 14-40
• alt_irq_init() on page 14-41
• alt_irq_pending () on page 14-42
• alt_irq_register() on page 14-43
alt_instruction_exception_register()
Prototype
void alt_instruction_exception_register (
alt_exception_result (*handler)
( alt_exception_cause cause,
alt_u32 exception_pc,
alt_u32 bad_addr ))
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
No.
Available from ISR
Yes.
Include
<sys/alt_exceptions.h>
Description
The HAL API function alt_instruction_exception_register() registers an instruction-related
exception handler. The handler argument is a pointer to the instruction-related exception handler.
You can only use this API function if you have enabled the hal.enable_instruc-
tion_related_exceptions_api setting in the board support package (BSP).
For more information, refer to “Settings Managed by the Software Build Tools” in the "Nios II Software
Build Tools Reference" chapter.
Register the instruction-related exception handler as early as possible in function main(). This allows you
to handle abnormal conditions during startup.
You can register an exception handler from the alt_main() function.
NII5V2
2015.05.14
alt_instruction_exception_register()
14-35
HAL API Reference
Altera Corporation
Send Feedback